Files
intrastat-extrastat/product_harmonized_system_delivery/models/product.py
Alexis de Lattre 40ef551079 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
2021-12-16 17:23:37 +01:00

11 lines
275 B
Python

# 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"
hs_code = fields.Char(related="hs_code_id.hs_code", store=True)