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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_sale_order_blanket_order_carrier_auto_assign-18.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bbf00a6f51a6947965b6498558bd2a8f23f2b64d4a0447a6737f6baf06ecf9a5
MD5 9b9bdde50b35c53854522f5ad0cd2ae0
BLAKE2b-256 bac3195e0296a2eb940e45c4d40a1f4f5fb69ccef015f33b2c739ff4087edb59

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