diff --git a/product_harmonized_system_delivery/__init__.py b/product_harmonized_system_delivery/__init__.py index e69de29..0650744 100644 --- a/product_harmonized_system_delivery/__init__.py +++ b/product_harmonized_system_delivery/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/product_harmonized_system_delivery/models/__init__.py b/product_harmonized_system_delivery/models/__init__.py new file mode 100644 index 0000000..9649db7 --- /dev/null +++ b/product_harmonized_system_delivery/models/__init__.py @@ -0,0 +1 @@ +from . import product diff --git a/product_harmonized_system_delivery/models/product.py b/product_harmonized_system_delivery/models/product.py new file mode 100644 index 0000000..5b65cf2 --- /dev/null +++ b/product_harmonized_system_delivery/models/product.py @@ -0,0 +1,11 @@ +# Copyright 2017 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +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)