pos_order_line_discount/models/pos_config.py
2025-09-02 15:25:52 +07:00

19 lines
618 B
Python

# -*- coding: utf-8 -*-
from odoo import models, fields
class PosConfig(models.Model):
_inherit = 'pos.config'
line_discount_type = fields.Selection([
('percentage', 'Percentage'),
('fixed', 'Fixed Amount')
], string='Line Discount Type', default='percentage',
help="Determines how order-level discounts are distributed to order lines")
apply_line_discount_on_rewards = fields.Boolean(
string="Apply Line Discount on Rewards",
default=True,
help="If checked, loyalty rewards will be applied as line discounts instead of order-level discounts"
)