Make end amount read only on non open cash session

Closes #12677
This commit is contained in:
Cédric Krier
2023-10-28 14:20:52 +02:00
parent 1f73ac4d03
commit 87013b68f9
+1
View File
@@ -758,6 +758,7 @@ class POSCashSession(Workflow, ModelSQL, ModelView):
"End Amount", currency='currency', digits='currency', required=True,
states={
'required': Eval('state').in_(['closed', 'posted']),
'readonly': Eval('state') != 'open',
})
state = fields.Selection([
('open', "Open"),