23 lines
604 B
Python
23 lines
604 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class LoyaltyRule(models.Model):
|
|
_inherit = 'loyalty.rule'
|
|
|
|
money_reward_point_mode = fields.Selection(
|
|
selection=[
|
|
('before_tax', 'Before Tax'),
|
|
('after_tax', 'After Tax')
|
|
],
|
|
string='Tax Option',
|
|
default='after_tax'
|
|
)
|
|
|
|
@api.model
|
|
def _load_pos_data_fields(self, config):
|
|
fields_list = super()._load_pos_data_fields(config)
|
|
fields_list.append('money_reward_point_mode')
|
|
return fields_list
|