From 1266b7f4706fa8eeb96ff4554a0f531c7c90d90f Mon Sep 17 00:00:00 2001 From: thcl-odoo Date: Fri, 18 Feb 2022 13:01:14 +0000 Subject: [PATCH] [FIX] l10n_de_sale: add missing incoterm on SO Current behavior : Incoterm isn't printed on quotation/order report with DIN5008 layout Steps : - Install Sales, Inventory and Germany - Sale - In Settings : - Enable Incoterms under Sales section - Select DIN5008 Layout (external_layout_din5008) for documents - Go to Sales and get a new one - Select an incoterm in Other info tab OPW-2759568 closes odoo/odoo#87184 X-original-commit: b6db1b7ba3439d2b0ae7ef7ccc7ee15e1642ecba Signed-off-by: Claude Thibault (thcl) --- .../i18n/l10n_din5008_sale.pot | 110 ++++++++++++++++++ addons/l10n_din5008_sale/models/sale.py | 2 + 2 files changed, 112 insertions(+) create mode 100644 addons/l10n_din5008_sale/i18n/l10n_din5008_sale.pot diff --git a/addons/l10n_din5008_sale/i18n/l10n_din5008_sale.pot b/addons/l10n_din5008_sale/i18n/l10n_din5008_sale.pot new file mode 100644 index 00000000000..e84d0a5742e --- /dev/null +++ b/addons/l10n_din5008_sale/i18n/l10n_din5008_sale.pot @@ -0,0 +1,110 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_din5008_sale +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~15.1+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-03-24 10:21+0000\n" +"PO-Revision-Date: 2022-03-24 10:21+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Customer Reference" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Expiration" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Incoterm" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Invoicing Address:" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Invoicing and Shipping Address:" +msgstr "" + +#. module: l10n_din5008_sale +#: model:ir.model.fields,field_description:l10n_din5008_sale.field_sale_order__l10n_din5008_addresses +msgid "L10N Din5008 Addresses" +msgstr "" + +#. module: l10n_din5008_sale +#: model:ir.model.fields,field_description:l10n_din5008_sale.field_sale_order__l10n_din5008_document_title +msgid "L10N Din5008 Document Title" +msgstr "" + +#. module: l10n_din5008_sale +#: model:ir.model.fields,field_description:l10n_din5008_sale.field_sale_order__l10n_din5008_template_data +msgid "L10N Din5008 Template Data" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Order Date" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Order No." +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Quotation" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Quotation Date" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Quotation No." +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#: model:ir.model,name:l10n_din5008_sale.model_sale_order +#, python-format +msgid "Sales Order" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Salesperson" +msgstr "" + +#. module: l10n_din5008_sale +#: code:addons/l10n_din5008_sale/models/sale.py:0 +#, python-format +msgid "Shipping Address:" +msgstr "" diff --git a/addons/l10n_din5008_sale/models/sale.py b/addons/l10n_din5008_sale/models/sale.py index 06e72094d3f..0e90243d9f7 100644 --- a/addons/l10n_din5008_sale/models/sale.py +++ b/addons/l10n_din5008_sale/models/sale.py @@ -28,6 +28,8 @@ class SaleOrder(models.Model): data.append((_('Customer Reference'), record.client_order_ref)) if record.user_id: data.append((_("Salesperson"), record.user_id.name)) + if 'incoterm' in record._fields and record.incoterm: + data.append((_("Incoterm"), record.incoterm.code)) def _compute_l10n_din5008_document_title(self): for record in self: