Skip to content
Snippets Groups Projects
Commit cbb92132 authored by Victor Feyens's avatar Victor Feyens
Browse files

[FIX] product: currency computation depends on the product company_id.

parent 950f252b
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment