10 lines
413 B
Python
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)
|