From af4bf7cdb421444c957da665adf3c37d58ea66f4 Mon Sep 17 00:00:00 2001 From: Horacio Tellez Date: Thu, 2 Mar 2023 17:13:15 +0100 Subject: [PATCH] [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) --- addons/sale/wizard/sale_order_cancel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/wizard/sale_order_cancel.py b/addons/sale/wizard/sale_order_cancel.py index 1c5a008e8f4..ecbe195dcd0 100644 --- a/addons/sale/wizard/sale_order_cancel.py +++ b/addons/sale/wizard/sale_order_cancel.py @@ -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()