diff --git a/addons/product/models/product_template.py b/addons/product/models/product_template.py index fa34ae65a82..093bd25f5ae 100644 --- a/addons/product/models/product_template.py +++ b/addons/product/models/product_template.py @@ -176,6 +176,7 @@ class ProductTemplate(models.Model): for p in self: p.product_variant_id = p.product_variant_ids[:1].id + @api.depends('company_id') def _compute_currency_id(self): main_company = self.env['res.company']._get_main_company() for template in self: