From d229849ab2e4fddfcd7265c566ec15e358d826ae Mon Sep 17 00:00:00 2001 From: sergiocorato Date: Tue, 1 Aug 2023 17:05:31 +0200 Subject: [PATCH] [12.0][FIX] purchase_comment_template change partner do not update comment translation --- purchase_comment_template/models/purchase_order.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/purchase_comment_template/models/purchase_order.py b/purchase_comment_template/models/purchase_order.py index 4558b912..5548a9a9 100644 --- a/purchase_comment_template/models/purchase_order.py +++ b/purchase_comment_template/models/purchase_order.py @@ -32,6 +32,8 @@ def _set_note2(self): @api.onchange('partner_id') def onchange_partner_id_purchase_comment(self): if self.partner_id: + self._set_note1() + self._set_note2() comment_template = self.partner_id.property_comment_template_id if comment_template.position == 'before_lines': self.comment_template1_id = comment_template