From 6a1e3c0e2b468b32dedd5dca4434c68989e03cf6 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Mon, 16 May 2022 12:14:02 +0200 Subject: [PATCH] [14.0]fix stack trace when running module upgrade on 14.0.1.6.0 [UPD] Update intrastat_product.pot intrastat_product 14.0.1.6.1 Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-intrastat_product Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-intrastat_product/ --- intrastat_product/__manifest__.py | 2 +- intrastat_product/i18n/fr.po | 8 +++++++- intrastat_product/i18n/intrastat_product.pot | 8 +++++++- intrastat_product/models/intrastat_product_declaration.py | 4 +--- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/intrastat_product/__manifest__.py b/intrastat_product/__manifest__.py index 6439abf..1ad9b3a 100644 --- a/intrastat_product/__manifest__.py +++ b/intrastat_product/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Intrastat Product", - "version": "14.0.1.6.0", + "version": "14.0.1.6.1", "category": "Intrastat", "license": "AGPL-3", "summary": "Base module for Intrastat Product", diff --git a/intrastat_product/i18n/fr.po b/intrastat_product/i18n/fr.po index 397273c..15fdaec 100644 --- a/intrastat_product/i18n/fr.po +++ b/intrastat_product/i18n/fr.po @@ -94,13 +94,19 @@ msgid "" msgstr "" #. module: intrastat_product -#: model:ir.model.fields,help:intrastat_product.field_intrastat_product_computation_line__src_dest_country_code #: model:ir.model.fields,help:intrastat_product.field_intrastat_product_declaration_line__src_dest_country_code msgid "" "2 digit code of country of origin/destination.\n" "Specify 'XI' for UK Northern Ireland and 'XU' for rest of the UK." msgstr "" +#. module: intrastat_product +#: model:ir.model.fields,help:intrastat_product.field_intrastat_product_computation_line__src_dest_country_code +msgid "" +"2 digit code of country of origin/destination.\n" +"Specify 'XI' for UK Northern Ireland." +msgstr "" + #. module: intrastat_product #: model_terms:ir.ui.view,arch_db:intrastat_product.intrastat_product_declaration_view_form msgid "Intrastat Product Declaration " diff --git a/intrastat_product/i18n/intrastat_product.pot b/intrastat_product/i18n/intrastat_product.pot index fc551df..48429ef 100644 --- a/intrastat_product/i18n/intrastat_product.pot +++ b/intrastat_product/i18n/intrastat_product.pot @@ -90,13 +90,19 @@ msgid "" msgstr "" #. module: intrastat_product -#: model:ir.model.fields,help:intrastat_product.field_intrastat_product_computation_line__src_dest_country_code #: model:ir.model.fields,help:intrastat_product.field_intrastat_product_declaration_line__src_dest_country_code msgid "" "2 digit code of country of origin/destination.\n" "Specify 'XI' for UK Northern Ireland and 'XU' for rest of the UK." msgstr "" +#. module: intrastat_product +#: model:ir.model.fields,help:intrastat_product.field_intrastat_product_computation_line__src_dest_country_code +msgid "" +"2 digit code of country of origin/destination.\n" +"Specify 'XI' for UK Northern Ireland." +msgstr "" + #. module: intrastat_product #: model_terms:ir.ui.view,arch_db:intrastat_product.intrastat_product_declaration_view_form msgid "Intrastat Product Declaration " diff --git a/intrastat_product/models/intrastat_product_declaration.py b/intrastat_product/models/intrastat_product_declaration.py index ca066ec..43839ad 100644 --- a/intrastat_product/models/intrastat_product_declaration.py +++ b/intrastat_product/models/intrastat_product_declaration.py @@ -1085,12 +1085,10 @@ class IntrastatProductComputationLine(models.Model): ) src_dest_country_code = fields.Char( string="Country Code", - compute="_compute_src_dest_country_code", - store=True, required=True, readonly=False, help="2 digit code of country of origin/destination.\n" - "Specify 'XI' for UK Northern Ireland and 'XU' for rest of the UK.", + "Specify 'XI' for UK Northern Ireland.", ) product_id = fields.Many2one( "product.product", related="invoice_line_id.product_id"