OdooWiki OCA HUB

Stock Picking Restrict Cancel with Original Moves

stock_picking_restrict_cancel_with_orig_move folder_open OCA/stock-logistics-workflow open_in_new
Warehouse License: AGPL-3

This module restricts the cancellation of stock picking, if any move is linked to a previous move, which is not canceled or done yet.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds an option on operation types to block cancelling a transfer when its moves depend on earlier moves that are not yet done or cancelled.

This module gives warehouse managers a safety switch on each operation type (for example Receipts, Delivery Orders, Internal Transfers). On the operation type form, right after the backorder setting, a new checkbox called "Restrict Cancellation with Original Moves" can be turned on.

When that checkbox is active, Odoo checks the chain of moves before cancelling. If a move in the transfer has a previous move that is still waiting, ready or assigned (not done and not cancelled), the cancellation is refused and an error message is shown. The message lists the blocking documents, for example the pickings that still need to be completed.

  • The check is applied per operation type, so it can be enabled only where needed.
  • Cancellation is still allowed when all previous moves are already done or cancelled, or when the previous moves are part of the same cancellation request.
  • Internal operations such as merging moves are not blocked by this rule.

The module extends stock.move and stock.picking.type and adds a field to the operation type form. It does not create new menus or reports.

Depends on

stock
Models and fields (2)
  • stock.move · extends an existing model
  • stock.picking.type · extends an existing modelrestrict_cancel_with_orig_move (Restrict Cancellation with Original Moves)

Text generated by AI (DeepSeek) from reading the Odoo 18.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 4 confirmed, 5 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/stock-logistics-workflow.

terminal Installation and usage

OCA documentation · Odoo 18.0

Odoo allows to cancel any picking in a chain of moves between locations, and will automatically cancel the ensuing moves but leaves the previous ones in their actual state.

This module restricts this possibility and displays an error to the user, listing all the stock pickings containing stock moves linked to the picking the user is trying to cancel, so he can delete the original, ensuring all the following pickings will be canceled as well.

To enable the restriction, go to Inventory > Configuration > Operation Types, open the desired operation type, and enable the option Restrict Cancellation with Original Moves.

No verified information in OCA: Installation, Configuration.

info

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.