This commit is contained in:
2026-01-05 21:09:03 -05:00
parent 5e18fa68a3
commit e130ae7f9d

View File

@@ -40,9 +40,12 @@ class Sale(metaclass=PoolMeta):
super(Sale, cls).__setup__() super(Sale, cls).__setup__()
cls._buttons.update({ cls._buttons.update({
'wizard_sale_payment': { 'wizard_sale_payment': {
'invisible': Eval('state') == 'done', 'invisible': (Eval('state') == 'done') | (Eval(
'readonly': Not(Bool(Eval('lines'))), 'residual_amount', 0) == 0),
}, 'readonly': Not(Bool(Eval('lines'))) | (Eval(
'residual_amount', 0) == 0),
'depends': ['state', 'residual_amount']
},
'wizard_change_payment_method': {}, 'wizard_change_payment_method': {},
}) })