Repository
OCA/sale-promotion · module folder · Try on Runboat
Module version
1.0.0
Category
Sale
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-promotion
Last tracking update
2026-08-07 08:43:05
Authors
Odoo Community Association (OCA), Acsone
Maintainers
Odoo Community Association (OCA), Acsone
Committers
OCA-git-bot, oca-ci, Bhavesh Heliconia
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
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.

Code Analysis

Views touched (0)

No views found for this module.

HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (4)
  • generated_coupon_ids One2many → loyalty.card
    help='The coupons generated from this order.' args: 'loyalty.card', 'order_id', 'Generated Coupons'
  • program_ids Many2many → loyalty.program
    compute='_compute_programs' string='Applied programs' args: 'loyalty.program'
  • promo_codes Char
    compute='_compute_promo_codes'
  • reward_amount_tax_incl Float
    compute='_compute_reward_total_tax_incl'
Public methods (0)

No public methods.

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
574 days ago
Last activity
16 days ago
Repository
OCA/sale-promotion
Pull request
[17.0][MIG] sale_loyalty_order_info: Migration to 17.0 (#244)
Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
104 days ago
Last activity
64 days ago
Repository
OCA/sale-promotion
Pull request
[19.0][MIG] sale_loyalty_order_info: Migration to 19.0 (#327)