90569e55abdee3f0a65d8e2be50fb901945a8221
In a multi-company environment, creating a product template will always try to assign it's route to `route_warehouse0_buy` but this throws an error if the current company is not the one of the route Steps to reproduce: 1. Install Inventory and Purchase 2. Go to Settings > Inventory > Warehouse and enable Multi-Step Routes 3. Open Inventory and go to Configuration > Warehouse Management > Routes 4. Open the 'Buy' route, assign it to one of the company for example 'My Company (San Fransisco)' and save 5. Go to Products and select an other company for example 'My Company (Chicago)' 6. Click on `CREATE` 7. An error is thrown, preventing the user from creating new products Problem: Function `_get_buy_route` always fetched the same route but this route's company might have been changed so an error is thrown when trying to access it from the other company Solution: Check if we have access to `route_warehouse0_buy` before using it. opw-2805154 closes odoo/odoo#90093 X-original-commit: 1a733ae0bfd9f1cb1e90a2cab80af290560c6f12 Signed-off-by: Arnold Moyaux <arm@odoo.com> Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%