Add new module product_harmonized_system_delivery (hide native hs_code field)

Finalize port to v11
This commit is contained in:
Alexis de Lattre
2018-12-06 19:34:56 +01:00
committed by Pedro M. Baeza
parent 919a7944ae
commit d68468cb77
15 changed files with 107 additions and 79 deletions

View File

@@ -31,9 +31,8 @@ class HSCode(models.Model):
"has a few additional digits to extend the H.S. code.")
active = fields.Boolean(default=True)
company_id = fields.Many2one(
'res.company', string='Company', readonly=True, required=True,
default=lambda self: self.env['res.company']._company_default_get(
'hs.code'))
'res.company', string='Company',
default=lambda self: self.env['res.company']._company_default_get())
product_categ_ids = fields.One2many(
'product.category', 'hs_code_id', string='Product Categories')
product_tmpl_ids = fields.One2many(