Friday, March 19, 2021
1 change · master
Resolved issues and error corrections
This fixes an issue where Odoo could use the wrong active company in web views for users with access to multiple companies. It helps ensure multi-company users see and work with data under the correct company, and adds safeguards to prevent the issue from returning.
Original PR description
This commit fix a bug introduced in #66551 where a mismatch has been done between session.user_context.allowed_company_ids and session.user_companies.allowed_companies. This commit also adds the following tests: - a JS test in order to prevent future unwanted issues regarding multi company in BasicModel. - a Python test in order to ensure that session_info['user_companies'] is not involuntarily changed. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr