From c175699e3ff0821bccc2b9f010d55c9f1facd864 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 9 Mar 2016 11:33:07 +0100 Subject: [PATCH] [FIX] sale: make `New` in new sales orders translate-able opw-671476 --- addons/sale/i18n/sale.pot | 6 ++++++ addons/sale/sale.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/sale/i18n/sale.pot b/addons/sale/i18n/sale.pot index 564ed7139ae..94dc4ff890d 100644 --- a/addons/sale/i18n/sale.pot +++ b/addons/sale/i18n/sale.pot @@ -922,6 +922,12 @@ msgstr "" msgid "Never allow to modify a confirmed sale order" msgstr "" +#. module: sale +#: code:addons/sale/sale.py:96 +#, python-format +msgid "New" +msgstr "" + #. module: sale #: model:ir.actions.act_window,name:sale.action_quotation_form msgid "New Quotation" diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 4a740280109..2925d35c545 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -93,7 +93,7 @@ class SaleOrder(models.Model): for order in self: order.order_line._compute_tax_id() - name = fields.Char(string='Order Reference', required=True, copy=False, readonly=True, index=True, default='New') + name = fields.Char(string='Order Reference', required=True, copy=False, readonly=True, index=True, default=_('New')) origin = fields.Char(string='Source Document', help="Reference of the document that generated this sales order request.") client_order_ref = fields.Char(string='Customer Reference', copy=False)