Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sale_purchase_force_vendor: Be able to force a vendor on other MTO-like routes #2574

Open
marielejeune opened this issue Feb 18, 2025 · 1 comment

Comments

@marielejeune
Copy link

marielejeune commented Feb 18, 2025

The module sale_purchase_force_vendor allows the user to force a vendor (supplier) on a sale order line. If using the default MTO route, the purchase order will be created targeting the vendor specified on the SOL.

However, a MTO route is just a route that contains a rule "Pull from Partners/Customers" whose supply method is "trigger another rule", to be combined with another rule/route that fulfills the source location (stock).

On more complex warehouses one may want to define MTO-like routes that combine several "pull from" rules and a "buy" rule. See a concrete example below:

Image

The actual code in sale_purchase_force_vendor doesn't propagate the vendor through the different rules of a single route. This is why it works only with the Odoo default MTO route.

An enhancement would like to propagate the related SOL to be able to retrieve the forced vendor when triggering the rule buying the product.

See related PR #2575 for an enhancement proposition.

@rousseldenis
Copy link
Contributor

@OCA/procurement-purchase-maintainers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants