diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-05-22 09:03:55 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-05-29 08:09:15 +0000 |
| commit | f5dfe4727c086c7577da2aef12c2d3548ba938a3 (patch) | |
| tree | 8af04c84c18ded0c1ed48c7c61640021dd9d24cb /addons/product_margin/models | |
| parent | 11cab26fb0f2167bfccfc3f11db10ff308f067b4 (diff) | |
[IMP] api.py: Rename company_id/company_ids into company/companies
The goal is to be coherent with the user property.
Actually, company_id and company_ids on the environment are no fields.
Calling env.company_id returns a browse record, not an id.
Diffstat (limited to 'addons/product_margin/models')
| -rw-r--r-- | addons/product_margin/models/product_product.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product_margin/models/product_product.py b/addons/product_margin/models/product_product.py index 5f8ca4002d1..5e4d5565b59 100644 --- a/addons/product_margin/models/product_product.py +++ b/addons/product_margin/models/product_product.py @@ -100,7 +100,7 @@ class ProductProduct(models.Model): if "force_company" in self.env.context: company_id = self.env.context['force_company'] else: - company_id = self.env.company_id.id + company_id = self.env.company.id #Cost price is calculated afterwards as it is a property sqlstr = """ |
