[FIX] product: currency computation depends on the product company_id.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user