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.
Cette question a été signalée
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
0
déc. 25
|
19 | ||
|
|
0
avr. 17
|
4806 | ||
|
|
0
mai 26
|
3 | ||
|
|
0
mai 26
|
1 | ||
|
|
1
août 25
|
2237 |
I agree that the route on the sales order line ought to be an override. I wonder why it was changed in v19.