[FIX] make hs_code company_id optional

This commit is contained in:
Pierrick Brun
2018-12-04 11:29:57 +01:00
parent 59b1959ba6
commit 9c82b5cfd6

View File

@@ -32,7 +32,7 @@ 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,
'res.company', string='Company',
default=lambda self: self.env['res.company']._company_default_get(
'hs.code'))
product_categ_ids = fields.One2many(