Sale Order Blanket Order — Carrier Auto Assign Compatibility

sale_order_blanket_order_carrier_auto_assign
REPOSITORY
REPOSITORYOCA/sale-blanket
GIT
GIThttps://github.com/OCA/sale-blanket.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-blanket/tree/18.0/sale_order_blanket_order_carrier_auto_assign
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, BCIM
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, BCIM
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, David Gallay
WEBSITE
WEBSITEhttps://github.com/OCA/sale-blanket
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/sale-blanket:
    - sale_order_blanket_order
OCA/sale-workflow:
    - sale_manual_delivery
    - sale_order_carrier_auto_assign
odoo/odoo:
    - stock_delivery
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - delivery
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
# Sale Order Blanket Order — Carrier Auto Assign Compatibility

Glue module reconciling
[`sale_order_blanket_order`](https://github.com/OCA/sale-blanket) and
[`sale_order_carrier_auto_assign`](https://github.com/OCA/sale-workflow).

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

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.