Repository
OCA/sale-promotion · module folder · Try on Runboat
Module version
1.0.1
Category
Sale
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-promotion
Last tracking update
2026-08-07 07:57:18
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
David, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_coupon_multi_gift
Description

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
coupon_program_view_form_common coupon.program form Inherits coupon.coupon_program_view_form_common
HTTP endpoints (0)

No HTTP endpoints found for this module.

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')