[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user