From 6fee3fb72ea71a3b4a964e21a0d2aaa0b417c016 Mon Sep 17 00:00:00 2001 From: tdi-odoo Date: Mon, 12 Sep 2016 14:17:35 +0200 Subject: [PATCH] [FIX] stock: fix typing error in opening inventory valuations --- addons/stock/models/stock_quant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_quant.py b/addons/stock/models/stock_quant.py index 5c86fd93d77..f241ddd5a05 100644 --- a/addons/stock/models/stock_quant.py +++ b/addons/stock/models/stock_quant.py @@ -82,7 +82,7 @@ class Quant(models.Model): if quant.company_id != self.env.user.company_id: # if the company of the quant is different than the current user company, force the company in the context # then re-do a browse to read the property fields for the good company. - quant = quant.with_context(force_company=quant.company__id.id) + quant = quant.with_context(force_company=quant.company_id.id) quant.inventory_value = quant.product_id.standard_price * quant.qty @api.model_cr