Make the payment term fields readonly for non draft amendment lines
Closes #14746 (grafted from 85902c3ab347d29e9b4e957828add75f2cb2beef) --HG-- branch : 6.0
This commit is contained in:
1 parent
605dc25683
commit
f0f817c84f
2 files changed
+2
No files matched your search
@@ -195,6 +195,7 @@ class AmendmentLine(ModelSQL, ModelView):
|
||||
payment_term = fields.Many2One(
|
||||
'account.invoice.payment_term', "Payment Term",
|
||||
states={
|
||||
'readonly': Eval('state') != 'draft',
|
||||
'invisible': Eval('action') != 'payment_term',
|
||||
},
|
||||
depends=['action'])
|
||||
|
||||
@@ -211,6 +211,7 @@ class AmendmentLine(ModelSQL, ModelView):
|
||||
payment_term = fields.Many2One(
|
||||
'account.invoice.payment_term', "Payment Term",
|
||||
states={
|
||||
'readonly': Eval('state') != 'draft',
|
||||
'invisible': Eval('action') != 'payment_term',
|
||||
},
|
||||
depends=['action'])
|
||||
|
||||
Reference in new issue
Block a user