Coupons multi product criteria

coupon_criteria_multi_product
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_criteria_multi_product
VERSION
VERSION 1.0.1
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, pilarvargas-tecnativa, Stefan
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:30
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
coupon_program_view_form_common coupon.program field Inherits coupon.coupon_program_view_form_common
Models touched (2)

New fields (4)
  • product_ids Many2many → product.product
    comodel_name='product.product' required=True
  • program_id Many2one → coupon.program
    comodel_name='coupon.program'
  • repeat_product Boolean
    help='Can product quantities count multiple times or not' string='Repeat'
  • rule_min_quantity Integer
    compute='_compute_rule_min_quantity' help='Minimum required product quantity to get the reward' readonly=False store=True string='Min. Quantity'
Public methods (0)

No public methods.

New fields (2)
  • coupon_criteria Selection
    default='domain' help='- Domain: Standard behavior. The products are evaluated by domain.\n- Multi product: different rules can be applied to different products and all of the have to be fulfilled' selection=[('domain', 'Domain'), ('multi_product', 'Multi Product')] string='Coupon criteria'
  • coupon_criteria_ids One2many → coupon.criteria
    comodel_name='coupon.criteria' inverse_name='program_id' string='Multi Product Criterias'
Public methods (0)

No public methods.