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:
Cédric Krier committed 2026-04-04 00:52:12 +02:00
1 parent 605dc25683
commit f0f817c84f
2 files changed
+2

No files matched your search

+1
View File
@@ -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'])
+1
View File
@@ -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'])