Skip to main content

Glue between sale_order_blanket_order and sale_order_carrier_auto_assign: keep auto-assigned carrier (delivery-fee) lines out of blanket-order call-off matching so they cannot consume blanket call-off capacity.

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_sale_order_blanket_order_carrier_auto_assign-18.0.1.0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_sale_order_blanket_order_carrier_auto_assign-18.0.1.0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3280fd0306a1699ecafdcd5d5e0c35e509ca09c91b6478303718a2289d17129b
MD5 cb75d93cecc903b36eeb330c5c29be9e
BLAKE2b-256 7586e5893038c8e863834d8edddb62d09718a3f8b652574d49dc35aa97ae9265

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page