from odoo import models, fields class AccountPaymentLaundryExt(models.Model): """Informational stamp — links settlement payments to the POS session that was open when the cashier collected the money. This field is purely for visibility (closing-screen summary). It does NOT inject settlement totals into POS cash-control math. """ _inherit = 'account.payment' pos_session_id = fields.Many2one( 'pos.session', string='POS Session', readonly=True, copy=False, index=True, help='POS session that was open when this settlement was created.', ) settlement_pos_pm_id = fields.Many2one( 'pos.payment.method', string='Settlement Payment Method', readonly=True, copy=False, index=True, help='Original POS payment method chosen by the cashier during settlement.', )