diff options
| author | tdi-odoo <tdi@odoo.com> | 2016-09-12 14:17:35 +0200 |
|---|---|---|
| committer | tdi-odoo <tdi@odoo.com> | 2016-09-12 15:14:09 +0200 |
| commit | 6fee3fb72ea71a3b4a964e21a0d2aaa0b417c016 (patch) | |
| tree | 568320e3075f902ea88546af85e71daee51d4664 | |
| parent | 629a747d1343e85df4b738ebf66566e8d6804f68 (diff) | |
[FIX] stock: fix typing error in opening inventory valuations
| -rw-r--r-- | addons/stock/models/stock_quant.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
