mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[IMP] product_harmonized_system_delivery: Make product.template#hs_code related
This commit is contained in:
committed by
Alexis de Lattre
parent
7287884b3a
commit
8d3d6108b9
@@ -0,0 +1 @@
|
|||||||
|
from . import models
|
||||||
|
|||||||
1
product_harmonized_system_delivery/models/__init__.py
Normal file
1
product_harmonized_system_delivery/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
from . import product
|
||||||
11
product_harmonized_system_delivery/models/product.py
Normal file
11
product_harmonized_system_delivery/models/product.py
Normal 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)
|
||||||
Reference in New Issue
Block a user