Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] product: keep package.company_id in view
Versions: --------- - 16.0+ Steps to reproduce: ------------------- 1. install stock; 2. in Inventory settings, enable product packagings; 3. set the company_id of a product to current company; 4. in user settings, remove access to all other companies; 5. from the page of the edited product, add a package; 6. try to save changes. Problem: -------- User Error pops up due to incompatible companies on records. Cause: ------ As of version 16.0, a field with the `groups="base.group_multi_company"` attribute might as well not exist outside multi-company contexts, preventing the context that automatically added a company_id to a newly created package from working properly. Solution: --------- Add an invisible field containing the `company_id` with the `groups="!base.group_multi_company"` attribute. opw-3457782 X-original-commit: 0e4ae10 Part-of: odoo#140025
- Loading branch information