Add hs_code_link

This commit is contained in:
Denis Leemann
2017-07-27 10:45:56 +02:00
parent 357790f7bd
commit ea27474f8f
6 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import product

View 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,
)