diff --git a/addons/product/models/product_template.py b/addons/product/models/product_template.py index 5fc5354b946..7017e17f177 100644 --- a/addons/product/models/product_template.py +++ b/addons/product/models/product_template.py @@ -208,7 +208,9 @@ class ProductTemplate(models.Model): @api.depends('company_id') @api.depends_context('company') def _compute_cost_currency_id(self): - self.cost_currency_id = self.company_id.currency_id or self.env.company.currency_id.id + env_currency_id = self.env.company.currency_id.id + for template in self: + template.cost_currency_id = template.company_id.currency_id.id or env_currency_id def _compute_template_field_from_variant_field(self, fname, default=False): """Sets the value of the given field based on the template variant values