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", 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)