Tower: upload laundry_management 19.0.19.0.4 (via marketplace)
This commit is contained in:
22
addons/laundry_management/models/account_payment_ext.py
Normal file
22
addons/laundry_management/models/account_payment_ext.py
Normal file
@@ -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.',
|
||||
)
|
||||
Reference in New Issue
Block a user