Coupon Promotion Discount in Field
This allows to put the discount from promotion directly into the "discount" field of the Sales Order line.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0Adds a new promotion reward type called "Discount in Line" that writes the promotion percentage directly into the Discount field of the sales order lines instead of creating a separate reward line.
When configuring a coupon program, users can now choose the reward type "Discount in Line". This makes the promotion behave like a normal line discount: the percentage is written into the Discount column of the eligible sales order lines, so the discount is visible and editable directly on the order lines rather than appearing as a separate reward product line.
- The program form shows a Discount percentage field when this reward type is selected, and hides the reward product and discount type fields that do not apply.
- Selecting this reward type requires the "Discount on sales order lines" setting to be enabled; otherwise Odoo raises an error asking the user to enable it.
- The discount can apply to the whole order, to the cheapest product, or to specific products, following the program's existing applicability settings.
- When a coupon code for such a program is applied, the discount is set on the matching order lines and the program is stored on the order.
- The order count and the "Sales Orders" button on the program correctly count and list orders using this reward type.
- Existing reward lines are recalculated so that programs with this reward type do not create extra reward lines and the line discounts stay up to date.
It touches coupon.program, coupon.reward, sale.order and the coupon code wizard sale.coupon.apply.code.
Depends on
Required by other modules
Models and fields (4)
- sale.order · extends an existing model
- coupon.reward · extends an existing modelreward_type
- coupon.program · extends an existing model
- sale.coupon.apply.code · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 14.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 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/sale-promotion.
terminal Installation and usage
OCA documentation · Odoo 14.0Usage
Source · Odoo 14.0Open or create a new Promotion Program in the Sales/Products/Promotion Programs menu.
Following new options are available:
- Reward: Discount in Line: When selected discount will be added into the Discount field of the Sales Order Line.
No verified information in OCA: Installation, Configuration.
Installation 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.