Since our migration to 19. Odoo has been ignoring sales order routes that have been selected. For example if an item is in stock and buy is selected it completely ignores the selection and picks the route that has the highest priority. Odoo docs are very poor about how routes work. The only workaround is to go into the product and make sure only one route is selected. Our desired behavior is if the product is in stock it should ship from our stock otherwise it should use the dropship route unless the user selects a different sales order route.
This question has been flagged
Hi,
In Odoo 19 this behavior is expected, as the route selected on the sales order line is not treated as a strict override. When multiple routes are available for a product, Odoo automatically evaluates all applicable routes and applies the one with the highest priority based on stock availability and procurement rules, which is why an in-stock product may follow a Buy or internal route even if Dropship is selected. To achieve the desired behavior, you should ensure only one sales route is enabled on the product, adjust route priorities so the intended route (such as Dropship) has higher priority, use separate products for stock and dropship scenarios, or implement a custom procurement override to strictly respect the sales order line route.
Hope it helps
Do ensure the ‘Pull from Stock to Customer’ rule on your delivery route, has the supply method set to ‘take from stock, if unavailable trigger another rule’
It is also possible to set supply method to ‘take from stock’ and define replenishment route
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
0
Dec 25
|
19 | ||
|
|
0
Apr 17
|
4784 | ||
|
|
0
May 26
|
3 | ||
|
|
0
May 26
|
1 | ||
|
|
1
Aug 25
|
2210 |
I agree that the route on the sales order line ought to be an override. I wonder why it was changed in v19.