Skip to content
back to search

OCA/sale-blanket · 18.0

Sale Order Blanket Order — Carrier Auto Assign Compatibility

sale_order_blanket_order_carrier_auto_assign

AGPL-3v18.0.1.0.15updated about 1 month ago

Odoo Community Association

Sale Order Blanket Order — Carrier Auto Assign Compatibility

Beta License: AGPL-3 OCA/sale-blanket Translate me on Weblate Try me on Runboat

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.

Table of contents

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp
  • BCIM

Contributors

  • David Gallay <david.gallay@camptocamp.com>
  • Jacques-Etienne Baudoux (BCIM) <je@bcim.be>

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/sale-blanket project on GitHub.

You are welcome to contribute. To learn how please visit <https://odoo-community.org/page/Contribute>.