Adds reward discount apply option for most expensive product.
Logic is reused same way as it is used for cheapest product, just it uses most expensive product line.
auto_awesome What this module does
AI-generated from the code · Odoo 13.0Adds a new discount option to coupon programs: apply the reward discount to the most expensive product line of the order instead of the whole order or the cheapest product.
This module extends the coupon and promotion features of Odoo Sales. When you configure a coupon program or promotion that gives a discount, you now get an extra choice in the "Apply On" field: "On Most Expensive Product".
- In the reward configuration screen, the discount can be set to apply to the most expensive product line of the order.
- The reward name shown in lists and forms is updated automatically, for example "10% discount on most expensive product".
- When a customer places an order and the coupon is applied, Odoo looks at all non-reward order lines with a positive price and picks the one with the highest reduced price.
- The discount is then calculated only on that line, not on the whole order.
This works for percentage discounts; fixed-amount discounts are not affected. The module touches the coupon reward model (sale.coupon.reward) and the sales order model (sale.order). It reuses the existing logic for the cheapest product, simply switching to the most expensive line when this option is selected. No new menus or reports are added.
Depends on
Required by other modules
Models and fields (2)
- sale.order · extends an existing model
- sale.coupon.reward · extends an existing modeldiscount_apply_on
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.