Coupons multi gift

coupon_multi_gift
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_multi_gift
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, David, oca-ci
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 xpath Inherits coupon.coupon_program_view_form_common
Models touched (2)

New fields (2)
  • coupon_multi_gift_ids One2many → coupon.reward.product_line
    comodel_name='coupon.reward.product_line' inverse_name='reward_id' string='Gift list'
  • reward_type Selection
    selection_add=[('multi_gift', 'Multi Gift')]
Public methods (1)
  • name_get(self)
    Add complete description for the multi gift reward type.

New fields (4)
  • reward_default_product_id Many2one → product.product
    comodel_name='product.product' compute='_compute_reward_default_product_id' inverse='_inverse_reward_default_product_id' readonly=False
  • reward_id Many2one → coupon.reward
    comodel_name='coupon.reward'
  • reward_product_ids Many2many → product.product
    comodel_name='product.product' help='Reward Product' string='Gift Options'
  • reward_product_quantity Integer
    help='Reward product quantity' string='Quantity'
Public methods (1)
  • onchange_reward_product_ids(self)
    @api.onchange('reward_product_ids')