mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
Add hs_code_link
This commit is contained in:
3
hs_code_link/models/__init__.py
Normal file
3
hs_code_link/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import product
|
||||
15
hs_code_link/models/product.py
Normal file
15
hs_code_link/models/product.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2017 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = 'product.template'
|
||||
|
||||
hs_code = fields.Char(
|
||||
related='hs_code_id.hs_code',
|
||||
readonly=True,
|
||||
store=True,
|
||||
)
|
||||
Reference in New Issue
Block a user