From df80a24828e7e8de0e63cae1d2626f30605d1e5b Mon Sep 17 00:00:00 2001 From: Domenico Stragapede Date: Mon, 30 May 2022 13:44:17 +0000 Subject: [PATCH] [FIX] sale: translate down payment product name Translate the product name "Down payment" when it is created "on the fly" from wizard. X-original-commit: 17f460587a207d708f1b9d9a0c6d080e64f9eac8 Part-of: odoo/odoo#93249 --- addons/sale/i18n/sale.pot | 6 ++++++ addons/sale/wizard/sale_make_invoice_advance.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/sale/i18n/sale.pot b/addons/sale/i18n/sale.pot index e4cb195c1cd..50585f72ac1 100644 --- a/addons/sale/i18n/sale.pot +++ b/addons/sale/i18n/sale.pot @@ -1465,6 +1465,12 @@ msgstr "" msgid "Down Payments" msgstr "" +#. module: sale +#: code:addons/sale/wizard/sale_make_invoice_advance.py:0 +#, python-format +msgid "Down payment" +msgstr "" + #. module: sale #: model:ir.model.fields.selection,name:sale.selection__sale_advance_payment_inv__advance_payment_method__fixed msgid "Down payment (fixed amount)" diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index ae8c8e118c4..fde23692358 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -190,7 +190,7 @@ class SaleAdvancePaymentInv(models.TransientModel): def _prepare_deposit_product(self): return { - 'name': 'Down payment', + 'name': _('Down payment'), 'type': 'service', 'invoice_policy': 'order', 'property_account_income_id': self.deposit_account_id.id,