Sale Coupon Most Expensive Delivery
Bridge for Most Expensive program and shipping costs.
auto_awesome What this module does
AI-generated from the code · Odoo 13.0This bridge module makes the 'most expensive product' coupon program ignore delivery charges when picking the eligible product, so shipping costs never win the discount.
This is a small technical bridge that changes how the 'most expensive product' coupon program behaves on a sales order when delivery is involved.
- On a sales order, the module redefines which line is considered the most expensive one for the coupon program. It looks only at real product lines, skipping reward lines created by coupon programs and skipping delivery/shipping lines.
- A line is only considered if its reduced unit price is greater than zero, so free items are not taken into account.
- Among the remaining lines, the one with the highest reduced price is returned and used by the coupon program.
Because of this, when a customer orders products plus shipping, the coupon discount is calculated on the most expensive actual product, not on the delivery cost. There are no new menus, buttons, reports or scheduled actions: the change happens automatically in the background whenever the coupon program evaluates a sales order. It touches the sale.order model and works together with the coupon and delivery modules it depends on.
Depends on
Models and fields (1)
- sale.order · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 13.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/sale-workflow.
terminal Installation and usage
No verified informationInstallation 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.
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.