[IMP] product_harmonized_system_delivery: Make product.template#hs_code related

This commit is contained in:
Holger Brunn
2021-08-10 17:28:06 +02:00
committed by Stefan Rijnhart
parent ee26c0e140
commit e49d736ebb
3 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import models

View File

@@ -0,0 +1 @@
from . import product

View File

@@ -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)