Coupon Limit

coupon_limit
REPOSITORY
REPOSITORYOCA/sale-promotion
GIT
GIThttps://github.com/OCA/sale-promotion.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-promotion/tree/15.0/coupon_limit
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSPedro M. Baeza, Weblate, OCA-git-bot, David, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:29
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - coupon
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_coupon_program_view_form_common coupon.program field Inherits coupon.coupon_program_view_form_common
Models touched (2)

New fields (5)
  • rule_max_customer_application Integer
    default=0 help='Maximum times that a program can be applied to a customer. 0 for no limit.' string='Maximum Customer Applications'
  • rule_salesmen_limit_count Integer
    compute='_compute_rule_salesmen_limit_count' string='Salesmen maximum promotions'
  • rule_salesmen_limit_ids One2many → coupon.rule.salesmen.limit
    comodel_name='coupon.rule.salesmen.limit' help='Maximum times salesmen can apply a program. Empty for no limit.' inverse_name='rule_id' string='Salesmen Limits'
  • rule_salesmen_limit_used_count Integer
    compute='_compute_rule_salesmen_limit_count' string='Salesmen promotions used'
  • rule_salesmen_strict_limit Boolean
    default=False help='If marked, promotion will only be allowed for the list of salesmen with their quantities' string='Strict limit'
Public methods (0)

No public methods.

New fields (4)
  • rule_id Many2one → coupon.rule
    auto_join=True comodel_name='coupon.rule' ondelete='cascade' required=True
  • rule_max_salesman_application Integer
    default=0 help='Maximum times a salesman can apply a program. 0 for no limit.' string='Maximum Salesman Applications'
  • rule_times_used Integer
    compute='_compute_rule_times_used' string='Uses'
  • rule_user_id Many2one → res.users
    comodel_name='res.users' ondelete='cascade' required=True string='Salesman'
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/14.0/coupon_limit
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Alessandro Uffreduzzi
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:50
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - coupon
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_coupon_program_view_form_common coupon.program field Inherits coupon.coupon_program_view_form_common
Models touched (2)

New fields (5)
  • rule_max_customer_application Integer
    default=0 help='Maximum times that a program can be applied to a customer. 0 for no limit.' string='Maximum Customer Applications'
  • rule_salesmen_limit_count Integer
    compute='_compute_rule_salesmen_limit_count' string='Salesmen maximum promotions'
  • rule_salesmen_limit_ids One2many → coupon.rule.salesmen.limit
    comodel_name='coupon.rule.salesmen.limit' help='Maximum times salesmen can apply a program. Empty for no limit.' inverse_name='rule_id' string='Salesmen Limits'
  • rule_salesmen_limit_used_count Integer
    compute='_compute_rule_salesmen_limit_count' string='Salesmen promotions used'
  • rule_salesmen_strict_limit Boolean
    default=False help='If marked, promotion will only be allowed for the list of salesmen with their quantities' string='Strict limit'
Public methods (0)

No public methods.

New fields (4)
  • rule_id Many2one → coupon.rule
    auto_join=True comodel_name='coupon.rule' ondelete='cascade' required=True
  • rule_max_salesman_application Integer
    default=0 help='Maximum times a salesman can apply a program. 0 for no limit.' string='Maximum Salesman Applications'
  • rule_times_used Integer
    compute='_compute_rule_times_used' string='Uses'
  • rule_user_id Many2one → res.users
    comodel_name='res.users' ondelete='cascade' required=True string='Salesman'
Public methods (0)

No public methods.