This module provides more info on the applied loyalty rewards on a sale order. It provides: * The total reward amount, computed tax included;
- A list of the applied promo codes; * All generated coupons from this
sale order; * All programs applied to the sale order.
The main goal is to use these info for reporting, so they are not added in views, as it would trigger additional computations.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Adds reporting fields to sale orders showing the total reward amount including taxes, the promo codes used, the coupons generated, and the loyalty programs applied.
This module extends the sale order with extra information about loyalty rewards, intended mainly for reporting rather than for display on forms.
reward_amount_tax_incl: a computed amount that totals the value of reward lines on the order, including taxes. For product rewards it subtracts the tax-included list price of the rewarded product; for other reward types it adds the line subtotal plus tax.promo_codes: a text field listing the codes of coupons applied to the order and of code-enabled rules, stored as a string.generated_coupon_ids: a list of the loyalty cards (coupons) that were generated from this sale order.program_ids: the loyalty programs that apply to the order, derived from the reward lines.
These fields are computed automatically whenever the order lines, applied coupons, or code-enabled rules change. They are not added to any view, so they do not trigger extra computations during normal use. The module touches the sale.order model and links to loyalty.card and loyalty.program.
Depends on
Models and fields (1)
- sale.order · extends an existing modelprogram_ids (Applied programs), promo_codes, generated_coupon_ids, reward_amount_tax_incl
Text generated by AI (DeepSeek) from reading the Odoo 18.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: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.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.