Skip to content

[19.0] [MIG] sale_purchase_stock_auto_cancel#4465

Open
fredericgrall wants to merge 7 commits into
OCA:19.0from
apikcloud:19.0-mig-sale_purchase_stock_auto_cancel
Open

[19.0] [MIG] sale_purchase_stock_auto_cancel#4465
fredericgrall wants to merge 7 commits into
OCA:19.0from
apikcloud:19.0-mig-sale_purchase_stock_auto_cancel

Conversation

@fredericgrall

Copy link
Copy Markdown

No description provided.

carlos-lopez-tecnativa and others added 6 commits July 13, 2026 15:31
…om sales orders

This module adds a company-level option to automatically cancel purchase orders generated from sale orders (by Dropship or MTO rules) when the corresponding sales order is canceled.
Currently translated at 100.0% (8 of 8 strings)

Translation: sale-workflow-18.0/sale-workflow-18.0-sale_purchase_stock_auto_cancel
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_purchase_stock_auto_cancel/sl/
Currently translated at 100.0% (8 of 8 strings)

Translation: sale-workflow-18.0/sale-workflow-18.0-sale_purchase_stock_auto_cancel
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_purchase_stock_auto_cancel/es/
@OCA-git-bot OCA-git-bot added series:19.0 mod:sale_purchase_stock_auto_cancel Module sale_purchase_stock_auto_cancel labels Jul 13, 2026
@fredericgrall fredericgrall changed the title 19.0 mig sale purchase stock auto cancel [19.0] [MIG] sale_purchase_stock_auto_cancel Jul 13, 2026
@rousseldenis

Copy link
Copy Markdown
Contributor

/ocabot migration sale_purchase_stock_auto_cancel

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Jul 14, 2026
purchase_orders = order.sudo()._get_purchase_orders()
purchase_orders.filtered(
lambda po: po.company_id.purchase_auto_cancel
).button_cancel()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same remark as in #4466

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hello @rousseldenis , I’ve removed the loop

@fredericgrall
fredericgrall force-pushed the 19.0-mig-sale_purchase_stock_auto_cancel branch from 0d148ed to e3208da Compare July 15, 2026 07:05

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants