After this commit, the settings of coupons, promotions, gift cards and loyalty cards are now managed under a single one field in PoS Settings configuration. Moreover, this settings field is "global" and shared between the eCommerce and Sales app. task-2959620 closes odoo/odoo#99060 Related: odoo/upgrade#3842 Signed-off-by: Masereel Pierre <pim@odoo.com>
10 lines
256 B
Python
10 lines
256 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import fields, models, api
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = 'res.config.settings'
|
|
|
|
pos_gift_card_settings = fields.Selection(related='pos_config_id.gift_card_settings', readonly=False)
|