Repository
OCA/sale-promotion · module folder · Try on Runboat
Module version
1.0.0
Category
Sale
Folder size
0.05 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
ACSONE SA/NV, Odoo Community Association (OCA), Tecnativa
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA), Tecnativa
Committers
pilarvargas-tecnativa, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
loyalty_mass_mailing, sale_loyalty_partner_applicability
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 form Inherits loyalty.loyalty_program_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
106 days ago
Last activity
37 days ago
Repository
OCA/sale-promotion
Pull request
[19.0][MIG] loyalty_partner_applicability: Migration to 19.0 (#325)