# -*- coding: utf-8 -*- from odoo import models, fields class LoyaltyProgram(models.Model): _inherit = 'loyalty.program' reward_claim_limit_type = fields.Selection([ ('limited', 'Limited to 1 Time Claim'), ('multiple', 'Multiple Times Claim') ], string="Reward Claim Limit Type", default='limited', required=True, help="If 'Limited to 1 Time Claim', the reward is capped at its defined quantity. If 'Multiple Times Claim', customers can claim the reward as many times as their points allow.") def _load_pos_data_fields(self, config): params = super()._load_pos_data_fields(config) params.append('reward_claim_limit_type') return params