From d6c1b4a95b03f5b14352371ab2437fd67870669c Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Thu, 18 Nov 2021 12:54:03 +0100 Subject: [PATCH 1/9] [14.0][IMP] intrastat_product: Add product country of origin in declaration --- intrastat_product/models/intrastat_product_declaration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/intrastat_product/models/intrastat_product_declaration.py b/intrastat_product/models/intrastat_product_declaration.py index a13a5c8..560c194 100644 --- a/intrastat_product/models/intrastat_product_declaration.py +++ b/intrastat_product/models/intrastat_product_declaration.py @@ -961,6 +961,7 @@ class IntrastatProductDeclaration(models.Model): """ return [ "hs_code", + "product_origin_country", "src_dest_country", "amount_company_currency", "transaction", From 40ef551079aff1ac7e67291be797886df118221d Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 16 Dec 2021 17:23:37 +0100 Subject: [PATCH 2/9] product_harmonized_system_delivery: hs_code is now store=True This commit is the "followup" of the change to company_dependent=False on the fields hs_code_id on product.template and product.category. Add groupby on hs_code_id on product.template search view hs.code is now company_id=False by default --- product_harmonized_system/models/hs_code.py | 2 +- .../views/product_template.xml | 13 +++++++++++++ .../models/product.py | 3 +-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/product_harmonized_system/models/hs_code.py b/product_harmonized_system/models/hs_code.py index 245cb3d..da8cf11 100644 --- a/product_harmonized_system/models/hs_code.py +++ b/product_harmonized_system/models/hs_code.py @@ -53,7 +53,7 @@ class HSCode(models.Model): @api.model def _default_company_id(self): - return self.env.company + return False @api.depends("local_code") def _compute_hs_code(self): diff --git a/product_harmonized_system/views/product_template.xml b/product_harmonized_system/views/product_template.xml index 8cdfd2e..59fa83e 100644 --- a/product_harmonized_system/views/product_template.xml +++ b/product_harmonized_system/views/product_template.xml @@ -23,4 +23,17 @@ + + product.template + + + + + + + diff --git a/product_harmonized_system_delivery/models/product.py b/product_harmonized_system_delivery/models/product.py index 5b65cf2..eab6887 100644 --- a/product_harmonized_system_delivery/models/product.py +++ b/product_harmonized_system_delivery/models/product.py @@ -7,5 +7,4 @@ from odoo import fields, models class ProductTemplate(models.Model): _inherit = "product.template" - # this field cannot be stored because hs_code_id is company dependent - hs_code = fields.Char(related="hs_code_id.hs_code", readonly=True, store=False) + hs_code = fields.Char(related="hs_code_id.hs_code", store=True) From 382c0c3727306d82230e20c0823ff84d5c1e8650 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 2 Jan 2022 09:19:17 +0000 Subject: [PATCH 3/9] intrastat_product 14.0.1.5.2 --- intrastat_product/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intrastat_product/__manifest__.py b/intrastat_product/__manifest__.py index 70ff04f..6a3e931 100644 --- a/intrastat_product/__manifest__.py +++ b/intrastat_product/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Intrastat Product", - "version": "14.0.1.5.1", + "version": "14.0.1.5.2", "category": "Intrastat", "license": "AGPL-3", "summary": "Base module for Intrastat Product", From 97c7b83e9c8aa3b589fd7e9e3127a61a7cdfe227 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 2 Jan 2022 09:19:21 +0000 Subject: [PATCH 4/9] [UPD] addons table in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5aabc10..f032ba4 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Available addons addon | version | maintainers | summary --- | --- | --- | --- [intrastat_base](intrastat_base/) | 14.0.2.1.0 | | Base module for Intrastat reporting -[intrastat_product](intrastat_product/) | 14.0.1.5.1 | | Base module for Intrastat Product +[intrastat_product](intrastat_product/) | 14.0.1.5.2 | | Base module for Intrastat Product [intrastat_product_generic](intrastat_product_generic/) | 14.0.1.0.0 | | Generic Intrastat Product Declaration [product_harmonized_system](product_harmonized_system/) | 14.0.2.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![luc-demeyer](https://github.com/luc-demeyer.png?size=30px)](https://github.com/luc-demeyer) | Base module for Product Import/Export reports [product_harmonized_system_delivery](product_harmonized_system_delivery/) | 14.0.1.1.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![luc-demeyer](https://github.com/luc-demeyer.png?size=30px)](https://github.com/luc-demeyer) | Hide native hs_code field provided by the delivery module From 73ca129025bb3d935d4c4fe7f2077c7e17cf2ddb Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sun, 2 Jan 2022 09:30:53 +0000 Subject: [PATCH 5/9] [UPD] Update product_harmonized_system.pot --- product_harmonized_system/i18n/product_harmonized_system.pot | 1 + 1 file changed, 1 insertion(+) diff --git a/product_harmonized_system/i18n/product_harmonized_system.pot b/product_harmonized_system/i18n/product_harmonized_system.pot index 1ff4fa3..700b400 100644 --- a/product_harmonized_system/i18n/product_harmonized_system.pot +++ b/product_harmonized_system/i18n/product_harmonized_system.pot @@ -93,6 +93,7 @@ msgstr "" #: model:ir.model.fields,field_description:product_harmonized_system.field_product_product__hs_code_id #: model:ir.model.fields,field_description:product_harmonized_system.field_product_template__hs_code_id #: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form +#: model_terms:ir.ui.view,arch_db:product_harmonized_system.product_template_search_view msgid "H.S. Code" msgstr "" From ab1aff5e1a533f4b81bc413ae7133a0f4c6b720d Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 2 Jan 2022 09:35:06 +0000 Subject: [PATCH 6/9] product_harmonized_system 14.0.2.1.0 --- product_harmonized_system/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_harmonized_system/__manifest__.py b/product_harmonized_system/__manifest__.py index 4664922..5730795 100644 --- a/product_harmonized_system/__manifest__.py +++ b/product_harmonized_system/__manifest__.py @@ -9,7 +9,7 @@ { "name": "Product Harmonized System Codes", - "version": "14.0.2.0.0", + "version": "14.0.2.1.0", "category": "Reporting", "license": "AGPL-3", "summary": "Base module for Product Import/Export reports", From b29cc60b8e0a0b12577052d34ecf2df42c8ab231 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 2 Jan 2022 09:35:07 +0000 Subject: [PATCH 7/9] product_harmonized_system_delivery 14.0.1.2.0 --- product_harmonized_system_delivery/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_harmonized_system_delivery/__manifest__.py b/product_harmonized_system_delivery/__manifest__.py index 5415e85..3e76304 100644 --- a/product_harmonized_system_delivery/__manifest__.py +++ b/product_harmonized_system_delivery/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Product Harmonized System Codes - Delivery", - "version": "14.0.1.1.0", + "version": "14.0.1.2.0", "category": "Reporting", "license": "AGPL-3", "summary": "Hide native hs_code field provided by the delivery module", From d7cd76575f030db3ee5f46e401088c6eac44b670 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 2 Jan 2022 09:35:11 +0000 Subject: [PATCH 8/9] [UPD] addons table in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f032ba4..4a438a3 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,8 @@ addon | version | maintainers | summary [intrastat_base](intrastat_base/) | 14.0.2.1.0 | | Base module for Intrastat reporting [intrastat_product](intrastat_product/) | 14.0.1.5.2 | | Base module for Intrastat Product [intrastat_product_generic](intrastat_product_generic/) | 14.0.1.0.0 | | Generic Intrastat Product Declaration -[product_harmonized_system](product_harmonized_system/) | 14.0.2.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![luc-demeyer](https://github.com/luc-demeyer.png?size=30px)](https://github.com/luc-demeyer) | Base module for Product Import/Export reports -[product_harmonized_system_delivery](product_harmonized_system_delivery/) | 14.0.1.1.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![luc-demeyer](https://github.com/luc-demeyer.png?size=30px)](https://github.com/luc-demeyer) | Hide native hs_code field provided by the delivery module +[product_harmonized_system](product_harmonized_system/) | 14.0.2.1.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![luc-demeyer](https://github.com/luc-demeyer.png?size=30px)](https://github.com/luc-demeyer) | Base module for Product Import/Export reports +[product_harmonized_system_delivery](product_harmonized_system_delivery/) | 14.0.1.2.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![luc-demeyer](https://github.com/luc-demeyer.png?size=30px)](https://github.com/luc-demeyer) | Hide native hs_code field provided by the delivery module [product_harmonized_system_stock](product_harmonized_system_stock/) | 14.0.1.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) [![luc-demeyer](https://github.com/luc-demeyer.png?size=30px)](https://github.com/luc-demeyer) | Adds a menu entry for H.S. codes [//]: # (end addons) From 1d82d5896342b847d502bc5c49789097d17fcc0a Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 2 Jan 2022 09:35:14 +0000 Subject: [PATCH 9/9] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: intrastat-extrastat-14.0/intrastat-extrastat-14.0-product_harmonized_system Translate-URL: https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-product_harmonized_system/ --- product_harmonized_system/i18n/es.po | 1 + product_harmonized_system/i18n/fr.po | 1 + 2 files changed, 2 insertions(+) diff --git a/product_harmonized_system/i18n/es.po b/product_harmonized_system/i18n/es.po index 009cd36..14f926c 100644 --- a/product_harmonized_system/i18n/es.po +++ b/product_harmonized_system/i18n/es.po @@ -99,6 +99,7 @@ msgstr "Nombre mostrado" #: model:ir.model.fields,field_description:product_harmonized_system.field_product_product__hs_code_id #: model:ir.model.fields,field_description:product_harmonized_system.field_product_template__hs_code_id #: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form +#: model_terms:ir.ui.view,arch_db:product_harmonized_system.product_template_search_view msgid "H.S. Code" msgstr "Código HS" diff --git a/product_harmonized_system/i18n/fr.po b/product_harmonized_system/i18n/fr.po index 0c359f4..8802d3d 100644 --- a/product_harmonized_system/i18n/fr.po +++ b/product_harmonized_system/i18n/fr.po @@ -100,6 +100,7 @@ msgstr "Nom affiché" #: model:ir.model.fields,field_description:product_harmonized_system.field_product_product__hs_code_id #: model:ir.model.fields,field_description:product_harmonized_system.field_product_template__hs_code_id #: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form +#: model_terms:ir.ui.view,arch_db:product_harmonized_system.product_template_search_view msgid "H.S. Code" msgstr "Code S.H."