Loyalty Order Info

sale_loyalty_order_info
REPOSITORY
REPOSITORYOCA/sale-promotion
GIT
GIThttps://github.com/OCA/sale-promotion.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-promotion/tree/18.0/sale_loyalty_order_info
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acsone
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acsone
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Bhavesh Heliconia
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_loyalty
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - loyalty
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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.

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.

REPOSITORY
REPOSITORYOCA/sale-promotion
GIT
GIThttps://github.com/OCA/sale-promotion.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-promotion/tree/16.0/sale_loyalty_order_info
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acsone
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acsone
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, mle
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:41
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_loyalty
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account_payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - loyalty
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views 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.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/sale-promotion
PULL REQUEST
PULL REQUEST[17.0][MIG] sale_loyalty_order_info: Migration to 17.0 (#244)
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/sale-promotion
PULL REQUEST
PULL REQUEST[19.0][MIG] sale_loyalty_order_info: Migration to 19.0 (#327)