pos_loyalty_member_custom/models/pos_order.py
2026-05-21 17:04:01 +07:00

10 lines
413 B
Python

from odoo import models
class PosOrder(models.Model):
_inherit = 'pos.order'
def add_loyalty_history_lines(self, coupon_data, coupon_updates):
# Override to execute with sudo() to bypass multi-company record rules
# when cashier in one company updates a card belonging to another company
return super(PosOrder, self.sudo()).add_loyalty_history_lines(coupon_data, coupon_updates)