Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] stock: multi-company and multi-routes on product
- Multi-warehouse + Multi-company setup - Create Company A with warehouse and 1-step delivery - Create Company B with warehouse and 1-step delivery - Switch to Company A: Set Logistics route on product category All/Saleable : 1-step delivery - Switch to Company B: Set Logistics route on product category All/Saleable : 1-step delivery - Switch to Company A, make sure Company B is turned-off - Create new product and set category to All/Saleable - Save product Multi-company error is coming. This is due to the field `route_from_categ_ids` which is a related, and therefore fetched as `sudo` by default: https://github.com/odoo/odoo/blob/f0330d92b31bdae4637ae0c26f40ee07282ab449/odoo/fields.py#L368 Actually, the field doesn't seem to be useful since it is only used in a view. Fixes odoo#58357 opw-2390983 closes odoo#62609 X-original-commit: b68b45d Signed-off-by: Nicolas Martinelli (nim) <[email protected]>
- Loading branch information