Monday, March 22, 2021
1 change · master
Resolved issues and error corrections
This fix ensures purchased products follow the receipt route set on the product or its category instead of being forced to use the warehouse default route. Businesses with different receiving workflows can now rely on purchase orders to trigger the correct inventory steps.
Original PR description
To reproduce: 1. set WH receipt in 3 steps 2. create a "receipt in 2 steps" route for product 3. create a PO with product "receipt in 2 steps" In inventory, we will see this product still follow the "receipt in 3 steps" route. This is caused when we create move for PO, we prepare the route_ids according to warehouse's route_ids. After the move has it's own route_ids, it will not search for route set on product or product category (which should has higher priority over warehouse route). To fix it, we remove the route_ids when create the move for PO. A route will be found when the move being comfirmed. Task 2448439 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr