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

[18.0][IMP] sale_purchase_force_vendor: propagate the vendor on stock rules #2575

Open
wants to merge 25 commits into
base: 18.0
Choose a base branch
from

Conversation

marielejeune
Copy link

@marielejeune marielejeune commented Feb 18, 2025

Up to now the addon is designed to work only with the default MTO + buy routes.
This PR aims at propagating the forced vendor (on the SOL) through stock rules to be able to use more complex MTO-like routes.

See issue #2574 for more details about the target.

Feel free to review/comment. I'm open to discussions as I'm not a stock expert.

Depends on #2523 and on OCA/sale-workflow#3590



class StockMove(models.Model):
_inherit = "stock.move"

propagated_sale_line_id = fields.Many2one(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

victoralmau and others added 25 commits February 24, 2025 11:51
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-14.0/purchase-workflow-14.0-sale_purchase_force_vendor
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-sale_purchase_force_vendor/
…time so that it is always displayed and apply the correct domain in both use cases

TT39679
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-14.0/purchase-workflow-14.0-sale_purchase_force_vendor
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-sale_purchase_force_vendor/
Currently translated at 100.0% (11 of 11 strings)

Translation: purchase-workflow-15.0/purchase-workflow-15.0-sale_purchase_force_vendor
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-sale_purchase_force_vendor/es/
@marielejeune marielejeune force-pushed the 18.0-imp-sale_purchase_force_vendor-mle branch from fee4373 to 40e0ce5 Compare February 25, 2025 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.