From 2e18f35c4e73655fc4737e02cd6d2f7f105ad849 Mon Sep 17 00:00:00 2001 From: "Yenthe V.G" Date: Thu, 12 Jan 2017 08:19:52 +0100 Subject: [PATCH] [FIX] product: Rename invalid context variable The context uses an invalid name, which means it'll never work correctly. fixes #15028 Bug coming from the module migration --- addons/product/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/models/product.py b/addons/product/models/product.py index fd75d899983..d612941adf3 100644 --- a/addons/product/models/product.py +++ b/addons/product/models/product.py @@ -548,7 +548,7 @@ class ProductProduct(models.Model): PriceHistory.create({ 'product_id': product.id, 'cost': value, - 'company_id': self._context.get('force_compay', self.env.user.company_id.id), + 'company_id': self._context.get('force_company', self.env.user.company_id.id), }) @api.multi