Monday, February 10, 2025
1 change · saas-17.2
Resolved issues and error corrections
This fixes an issue where the second step of a two-step delivery could be sent to the general customer location instead of the specific customer sub-location. Businesses using detailed customer delivery locations will now see stock transfers created with the correct destination, reducing delivery errors and manual corrections.
Original PR description
to reproduce: ============= - make warehouse with 2-step delivery - create contact with Customer Location = Partners/Customers/Test (make sure location type = Customer location) - create a sale order with this contact - confirm the sale order - confirm first delivery -> the second delivery is created but the destination location is set to **Partners/Customers** instead of **Partners/Customers/Test** Problem: ======== - starting from 17.2 the second pick is created after validating the first one at creation used vals received from the move has the wrong destination location, it will be recomputed after creating the second pick but it's too late to change the destination location of the second pick Solution: ========= - recompute the destination location of move when preparing vals of the second pick opw-4374075 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr