OdooWiki OCA HUB

Stock Available to Promise Release - Block from Sales

sale_stock_available_to_promise_release_block folder_open OCA/wms open_in_new
Uncategorised License: AGPL-3

Block and unblock release of deliveries from sale orders.

Release of deliveries can be blocked right after the sale order confirmation.

When encoding a new order sharing the same delivery address, the user can list the existing blocked deliveries (backorders) and plan to unblock them when this new order is confirmed, making the existing deliveries and the new ones sharing the same scheduled dates and deadlines.

As a side-effect, this will leverage the module stock_picking_group_by_partner_by_carrier_by_date if this one is installed, by grouping all delivery lines within the same delivery order.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Block the release of deliveries directly from sales orders and plan when existing blocked deliveries should be unblocked when a new order is confirmed.

This module adds delivery blocking controls to sales orders. On a draft sales order, users can tick the block_release field so that the generated delivery is blocked at confirmation.

On the sales order form, two stat buttons appear: one shows available backorders that could be unblocked at confirmation, and the other shows deliveries that will be unblocked when the order is confirmed. A badge on order lines indicates when a line has a blocked delivery, and a filter "Is Release Blocked" is available in sales order line lists.

From a sales order line or a delivery move list, users can open the "Unblock Release" wizard. It offers three options: Manual (choose a date), Automatic / As soon as possible, or Based on current order. The wizard validates that the chosen date is not in the past. When "Based on current order" is used, the selected moves are linked to the order and will be unblocked automatically at confirmation, with their delivery method, shipping policy and scheduled date aligned with the new order.

A server action "Block Release" is also available on sales order lines to block their delivery moves. The module touches sale.order, sale.order.line, stock.move, stock.rule and adds the unblock.release wizard.

Models and fields (5)
  • sale.order · extends an existing modelblock_release, move_to_unblock_ids (Moves To Unblock), move_to_unblock_count, available_move_to_unblock_ids (Available moves to unblock), available_move_to_unblock_count
  • stock.move · extends an existing modelunblocked_by_order_id (Unblocked by order)
  • stock.rule · extends an existing model
  • sale.order.line · extends an existing modelis_release_blocked (Has Blocked Delivery), release_blocked_label (Release Blocked)
  • unblock.release · new modeloption, move_ids (Delivery moves), order_id (Order), date_deadline, order_line_ids (Order Lines)

Text generated by AI (DeepSeek) from reading the Odoo 16.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: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 16.0

When the order is confirmed, the release of the generated delivery will be blocked if the option "Block Release" is enabled.

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.