diff options
| author | yhu-odoo <yhu@odoo.com> | 2021-03-23 09:31:26 +0000 |
|---|---|---|
| committer | yhu-odoo <yhu@odoo.com> | 2021-05-18 12:45:36 +0000 |
| commit | 04db2309aba38325b1dad0db3a0f19829fd8b1cd (patch) | |
| tree | 20d37ae1141c7f420bc7e485fab57ec64aa1962c /addons/purchase/models | |
| parent | d4e046209914a7be3aed976a1fc3a74020843309 (diff) | |
[FIX] purchase: message not translated
Some message are not translated. Fix them.
closes odoo/odoo#68223
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons/purchase/models')
| -rw-r--r-- | addons/purchase/models/purchase.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/purchase/models/purchase.py b/addons/purchase/models/purchase.py index 56793330d20..69695e37e2c 100644 --- a/addons/purchase/models/purchase.py +++ b/addons/purchase/models/purchase.py @@ -709,7 +709,7 @@ class PurchaseOrder(models.Model): if order.state in ['purchase', 'done'] and not order.mail_reminder_confirmed: order.mail_reminder_confirmed = True date = confirmed_date or self.date_planned.date() - order.message_post(body="%s confirmed the receipt will take place on %s." % (order.partner_id.name, date)) + order.message_post(body=_("%(name)s confirmed the receipt will take place on %(date)s.", name=order.partner_id.name, date=date)) def _approval_allowed(self): """Returns whether the order qualifies to be approved by the current user""" @@ -726,7 +726,7 @@ class PurchaseOrder(models.Model): for order in self: if order.state in ['purchase', 'done'] and not order.mail_reception_confirmed: order.mail_reception_confirmed = True - order.message_post(body="The order receipt has been acknowledged by %s." % order.partner_id.name) + order.message_post(body=_("The order receipt has been acknowledged by %(name)s.", name=order.partner_id.name)) def _update_date_planned_for_lines(self, updated_dates): # create or update the activity |
