summaryrefslogtreecommitdiff
path: root/addons/product_matrix/models
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2020-09-24 09:01:30 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2020-09-24 11:12:48 +0000
commitf657ee02498bda10bbd2e6b2bd850a83685bd162 (patch)
treecda57b382f52f128d16f3aac491d3550926b3590 /addons/product_matrix/models
parenta90f50f178b18077ba7e7edf6faa46cd467f7086 (diff)
[FIX] product_matrix: error raised on order grid with foreign currency
- Create a price list with a foreign currency; - Create a product with some variants; - Configure the variants and make at least one of the variants with extra price; - Set the 'Sales Variant Selection' with 'Order Grid Entry'; - Create a new quotation with the foreign currency price list; - Add the product just created to the quotation. Before this commit, an error is raised, because the currency convert need a valid company id. Now, the order grid entry is shown. opw-2329658 closes odoo/odoo#58412 X-original-commit: bf325b60d24b7045e8bfb3f16be2476889368926 Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Diffstat (limited to 'addons/product_matrix/models')
-rw-r--r--addons/product_matrix/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product_matrix/models/product_template.py b/addons/product_matrix/models/product_template.py
index f3b2875ed5b..6915833ad83 100644
--- a/addons/product_matrix/models/product_template.py
+++ b/addons/product_matrix/models/product_template.py
@@ -85,7 +85,7 @@ class ProductTemplateAttributeValue(models.Model):
extra_price, {
'from_currency': fro_currency,
'display_currency': to_currency,
- 'company_id': company,
+ 'company_id': company.id,
}
)
})