[FW][FIX] sale: translation issue for cancelled message on logs

When cancelling a confirmed order the message displayed on the chatter was en English, regardless of the language set for the customer or the user.
After this commit the correct language will be used.

opw-3175301

closes odoo/odoo#114162

Forward-port-of: odoo/odoo#113977
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Horacio Tellez
2023-03-02 17:13:15 +01:00
parent 6f83fcb971
commit af4bf7cdb4
+1 -1
View File
@@ -84,4 +84,4 @@ class SaleOrderCancel(models.TransientModel):
return self.action_cancel()
def action_cancel(self):
return self.order_id.with_context({'disable_cancel_warning': True}).action_cancel()
return self.order_id.with_context(disable_cancel_warning=True).action_cancel()