OdooWiki OCA HUB

Sale Order Blanket Order — Carrier Auto Assign Compatibility

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

Sale Order Blanket Order — Carrier Auto Assign Compatibility

Glue module reconciling sale_order_blanket_order and sale_order_carrier_auto_assign.

Problem

When sale_order_carrier_auto_assign is installed, both blanket orders and call-off orders receive an auto-assigned carrier delivery-fee line. Without this module, the delivery-fee line participates in the blanket-order call-off matching algorithm: each call-off's delivery line "consumes" capacity from the blanket order's delivery line. After the first call-off, the blanket's delivery line has zero remaining capacity, so the second call-off fails confirmation with:

> The product is not part of linked blanket order

What this module does

It excludes is_delivery sale order lines from the blanket-order line matching algorithm and from the call-off → blanket stock-rule forwarding, so delivery-fee lines never participate in blanket call-off accounting.

Bypass switch

The filter can be turned off by setting the context key skip_blanket_carrier_filter=True. The regression test uses this flag to demonstrate that the original failure mode reappears when the filter is disabled.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Keeps automatically added delivery-fee lines out of blanket order call-off matching, so a second call-off can still be confirmed without the 'product is not part of linked blanket order' error.

This is a compatibility module that installs itself automatically when both the blanket order and the automatic carrier assignment features are present. It changes how call-off orders (the orders created against a blanket order) behave when a delivery carrier is assigned automatically.

Without it, the delivery-fee line that Odoo adds automatically would be counted as a normal product line during blanket order matching. The first call-off would use up the blanket order's delivery line, leaving nothing for the next one, and confirming a second call-off would fail with the message that the product is not part of the linked blanket order.

With this module:

  • Delivery-fee lines are ignored when checking that products on a call-off belong to the linked blanket order.
  • Delivery-fee lines are ignored when matching call-off lines to blanket order lines.
  • Delivery-fee lines are ignored when forwarding stock rules back to the blanket order.
  • On call-off orders, the automatic carrier assignment is skipped on creation, on update and on confirmation, so no delivery line is added in the first place.

It touches sale.order and sale.order.line. No new menus, screens or reports are added; the change is purely in the background logic.

Models and fields (1)
  • 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: 1 confirmed, 8 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.