From 205fd6afe21be8dc26d18d225cbfc75e3b649b6f Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 8 Mar 2018 14:19:25 +0100 Subject: [PATCH] [FIX] sale: translate Uncategorized layout --- addons/sale/i18n/sale.pot | 32 ++++++++++++++++++++------------ addons/sale/models/sale.py | 2 +- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/addons/sale/i18n/sale.pot b/addons/sale/i18n/sale.pot index dde9fae9376..b9064aabc9e 100644 --- a/addons/sale/i18n/sale.pot +++ b/addons/sale/i18n/sale.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-23 13:27+0000\n" -"PO-Revision-Date: 2017-06-23 13:27+0000\n" +"POT-Creation-Date: 2018-03-08 13:18+0000\n" +"PO-Revision-Date: 2018-03-08 13:18+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -131,13 +131,13 @@ msgid "\n" " % set record = ctx.get('record')\n" " % set company = record and record.company_id or user.company_id\n" " \n" -" \n" +"
\n" " \n" "\n" " \n" " \n" "
\n" -" \n" +"
\n" " \n" " \n" "
\n" " \n" @@ -155,7 +155,7 @@ msgid "\n" " \n" "
\n" -" \n" +"
\n" " \n" " \n" "
\n" " ${object.body | safe}\n" @@ -168,7 +168,7 @@ msgid "\n" " \n" "
\n" -" \n" +"
\n" " \n" "
\n" " ${company.name}
\n" @@ -1023,6 +1023,13 @@ msgstr "" msgid "Invoicing/Progression Ratio" msgstr "" +#. module: sale +#: code:addons/sale/models/sale.py:740 +#, python-format +msgid "It is forbidden to modify the following fields in a locked order:\n" +"%s" +msgstr "" + #. module: sale #: model:ir.model.fields,field_description:sale.field_sale_advance_payment_inv___last_update #: model:ir.model.fields,field_description:sale.field_sale_layout_category___last_update @@ -2122,6 +2129,12 @@ msgstr "" msgid "Track Service" msgstr "" +#. module: sale +#: code:addons/sale/models/sale.py:491 +#, python-format +msgid "Uncategorized" +msgstr "" + #. module: sale #: model:ir.model.fields,field_description:sale.field_sale_order_line_price_unit #: model:ir.ui.view,arch_db:sale.report_invoice_layouted @@ -2276,17 +2289,12 @@ msgid "You will find here all orders that are ready to be invoiced." msgstr "" #. module: sale +#: model:ir.actions.act_window,help:sale.action_quotations #: model:ir.actions.act_window,help:sale.action_quotations_salesteams msgid "Your next actions should flow efficiently: confirm the Quotation\n" " to a Sale Order, then create the Invoice and collect the Payment." msgstr "" -#. module: sale -#: model:ir.actions.act_window,help:sale.action_quotations -msgid "Your next actions should flow efficiently: confirm the Quotation\n" -" to a Sale Order, then create the Invoice and collect the Payment." -msgstr "" - #. module: sale #: model:ir.actions.act_window,help:sale.act_res_partner_2_sale_order #: model:ir.actions.act_window,help:sale.action_orders_salesteams diff --git a/addons/sale/models/sale.py b/addons/sale/models/sale.py index 1dcd6ca3c22..ef74b8315b0 100644 --- a/addons/sale/models/sale.py +++ b/addons/sale/models/sale.py @@ -488,7 +488,7 @@ class SaleOrder(models.Model): report_pages.append([]) # Append category to current report page report_pages[-1].append({ - 'name': category and category.name or 'Uncategorized', + 'name': category and category.name or _('Uncategorized'), 'subtotal': category and category.subtotal, 'pagebreak': category and category.pagebreak, 'lines': list(lines)