OdooWiki OCA HUB

Sale Order Blanket Order Stock Prebook Release

sale_order_blanket_order_stock_prebook_release folder_open OCA/sale-blanket open_in_new
Uncategorised License: AGPL-3

This module is a glue module between sale_order_blanket_order_stock_prebook and stock_available_to_promise_release

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

This module ensures that when blanket orders are confirmed, the priority date for releasing stock is set to the blanket order's start date, so that reservations and releases follow the correct order.

This module links blanket orders with the stock release process. When a blanket order is confirmed, the system automatically sets a 'Move Date Priority' based on the blanket order's validity start date. This priority is then used when releasing stock, so that orders are processed in the right sequence.

  • For blanket orders, the commitment date and validity start date are kept in sync: changing one updates the other.
  • When a blanket order's validity start date changes, the system recalculates the move date priority and updates the priority on all related outgoing stock moves that are not yet done or cancelled.
  • When confirming a blanket order, the move date priority is set to the validity start date plus a small offset based on how many other blanket orders share the same start date, ensuring a unique order.
  • For blanket orders with the 'at confirm' reservation strategy, the move date priority is passed to the procurement values, so that stock moves are created with the correct priority.
  • The module also includes a post-installation step that computes the move date priority for all existing confirmed blanket orders and updates their stock moves.

This module works together with sale.order and sale.order.line and affects stock moves and their release priority.

Models and fields (2)
  • sale.order · extends an existing modelcommitment_date, blanket_move_date_priority (Move Date Priority), blanket_validity_start_date
  • sale.order.line · extends an existing model

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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/sale-blanket.

terminal Installation and usage

No verified information

Installation 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.

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.