odoo / odoo

Odoo. Open Source Apps To Grow Your Business.

Home Page:https://www.odoo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi company issue facing

akloptim opened this issue · comments

ctx = dict(self._context, default_product_id=self.id, default_company_id=self.env.company.id)

If a user switches from company A to company B and tries to create a revaluation entry, the default company remains as A. This will cause a multi-company issue and prevent the user from creating the valuation entry. Additionally, the field is read-only