diff --git a/addons/laundry_management/models/account_payment_ext.py b/addons/laundry_management/models/account_payment_ext.py new file mode 100644 index 0000000..25ade3d --- /dev/null +++ b/addons/laundry_management/models/account_payment_ext.py @@ -0,0 +1,22 @@ +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.', + )