Daily updates from Odoo
Tuesday, May 13, 2025
1 change
Code cleanup and technical improvements
This update reorganizes internal stock-related tests so they use a dedicated warehouse and related resources instead of shared defaults. This should make future logistics testing more consistent and reliable, with no direct change expected for end users.
Original PR description
The end goal of Logistics tests refactoring is to use dedicated resources (companies, users, warehouses etc.) in all stock tests. This is part 1 of these changes, focusing on a dedicated warehouse, but also introducting some small improvements. After this PR is merged, we will: * use a dedicated warehouse in all stock tests * use locations, picking types, routes etc. associated with that warehouse, instead of global ones * consistently use test resources naming convention: * StockLocationObj -> the Odoo Model * stock_location -> a specific instance * stock_location.id -> the ID of that instance * use Command class instead of command triple * fix a few typos Please note that not all tests in stock module (and related ones) have been updated. The main reason is that not all of stock tests inherit from TestStockCommon. This will be changed in the future.