This module adds a link in the sale order line to the program used in a discount, so it can be easily tracked afterwards. Also eases the implementation of coupon modules that don't necessarily use the discount product as product for the discount line.
It also links the reward lines to:
- The order lines that generated them, so we can follow which order lines produced which discounts.
- The order lines over which the reward is applied:
- In a discount promo: the cheapest product, specific products or the whole order.
- In a product promo: the product lines over which the reward is discounted.
auto_awesome What this module does
AI-generated from the code · Odoo 15.0Links each sale order line to the coupon or promotion program that produced it, and shows which lines generated a reward and which lines received it. Adds promotion tracking fields and filters to sales orders and the sales analysis report.
This module makes promotions traceable on sales orders. Every discount or gift line created by a coupon program now stores the program it came from, and ordinary product lines keep links to the reward lines they generated and to the reward lines applied on them.
On a sales order you get a new "Promotions" section in the Other Information tab showing the applied programs, promo code, applied coupons and generated coupons. Inside the order lines, extra read-only columns (hidden by default) show the coupon program, the reward lines, the reward generated lines and the origin reward generated lines.
The links are filled automatically when reward lines are created or updated. For discount rewards, the module decides which lines are affected: the whole order, the cheapest product, or only specific products defined in the promotion. For product rewards, it links the lines of the rewarded product up to the required quantity. Lines that do not match the promotion's product rule are excluded.
In the Sales Analysis report you can now filter by coupon program, use a "Promotion Lines" filter, and group results by coupon program, so you can measure the impact of each promotion.
Depends on
Required by other modules
Models and fields (3)
- sale.order · extends an existing model
- sale.report · extends an existing modelcoupon_program_id (Coupon Program)
- sale.order.line · extends an existing modelreward_line_ids (Reward lines), coupon_program_id (Coupon Program), reward_generated_line_ids (Reward Generated lines), reward_origin_generated_line_ids (Origin Reward Generated lines)
Text generated by AI (DeepSeek) from reading the Odoo 15.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: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/sale-promotion.
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.