Purchase Stock Picking Restrict Cancel
This module extends stock_picking_restrict_cancel_with_orig_move to consider blocking purchase orders.
auto_awesome What this module does
AI-generated from the code · Odoo 12.0This module prevents users from cancelling a stock transfer when the related stock moves come from a purchase order, by flagging the purchase order as a blocking object.
This module adds a safety rule to stock transfers (pickings) that are linked to purchase orders. When a user tries to cancel a transfer, Odoo checks whether any of the stock moves in that transfer were created by a purchase order line. If so, the purchase order is reported as a blocking object, and the cancellation is restricted.
The module works together with the base module that already restricts cancellation when there are original moves. It extends the stock.move model by adding the purchase order to the list of blocking objects. The check is automatic and happens when the cancellation is attempted; no new menus, buttons, or reports are added.
This affects the stock.move model and, indirectly, purchase orders. The module is set to install automatically when both purchase and stock_picking_restrict_cancel_with_orig_move are installed, so the restriction is active without manual setup.
Depends on
Models and fields (1)
- stock.move · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 12.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/stock-logistics-workflow.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.