Loyalty Partner Applicability

loyalty_partner_applicability
REPOSITORY
REPOSITORYOCA/sale-promotion
GIT
GIThttps://github.com/OCA/sale-promotion.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-promotion/tree/18.0/loyalty_partner_applicability
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, pilarvargas-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - loyalty
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - account
    - onboarding
    - analytic
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends the Loyalty functionality by allowing the definition
of a customer filter for promotion rules. This module is a base to be
extended.

It allows to restrict the applicability of a promotion and its rules to
a subset of customers. This is useful when you want to target a specific
group of customers with a promotion. The restriction can be defined at
the program level.

When a restriction is defined at the program level, the promotion will
only be available to customers that match the filter.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
loyalty_program_view_form loyalty.program field Inherits loyalty.loyalty_program_view_form
Models touched (2)

New fields (2)
  • partner_domain Char
    default='[]' help='Define the domain to restrict which partners are eligible for this promotion.' string='Allowed partners domain'
  • partner_ids Many2many → res.partner
    comodel_name='res.partner' default=<expr> help='Only the selected partners will be eligible for this promotion.' string='Allowed partners'
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

New fields (1)
  • allow_coupon_sharing Boolean
    config_parameter='allow_coupon_sharing' string='Allow coupon sharing'
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/17.0/loyalty_partner_applicability
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, eugenio
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - loyalty
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends the Loyalty functionality by allowing the definition of a customer
filter for promotion rules. This module is a base to be extended.

It allows to restrict the applicability of a promotion and its rules to a subset of
customers. This is useful when you want to target a specific group of customers with a
promotion. The restriction can be defined at the program level.

When a restriction is defined at the program level, the promotion will only be
available to customers that match the filter.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
loyalty_program_view_form loyalty.program field Inherits loyalty.loyalty_program_view_form
Models touched (2)

New fields (2)
  • partner_domain Char
    default='[]' help='Define the domain to restrict which partners are eligible for this promotion.' string='Allowed partners domain'
  • partner_ids Many2many → res.partner
    comodel_name='res.partner' default=<expr> help='Only the selected partners will be eligible for this promotion.' string='Allowed partners'
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

New fields (1)
  • allow_coupon_sharing Boolean
    config_parameter='allow_coupon_sharing' string='Allow coupon sharing'
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/loyalty_partner_applicability
VERSION
VERSION 4.0.0
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSLaurent Mignon (ACSONE), Weblate, OCA-git-bot, oca-ci, pilarvargas-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:41
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - loyalty
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
loyalty_program_view_form loyalty.program field Inherits loyalty.loyalty_program_view_form
Models touched (2)

New fields (2)
  • partner_domain Char
    default='[]' help='Define the domain to restrict which partners are eligible for this promotion.' string='Allowed partners domain'
  • partner_ids Many2many → res.partner
    comodel_name='res.partner' default=<expr> help='Only the selected partners will be eligible for this promotion.' string='Allowed partners'
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

New fields (1)
  • allow_coupon_sharing Boolean
    config_parameter='allow_coupon_sharing' string='Allow coupon sharing'
Public methods (0)

No public methods.

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