changeset 05dd71d8d455 in modules/account_payment:default details: https://hg.tryton.org/modules/account_payment?cmd=changeset;node=05dd71d8d455 description: Make payment_direct_debit readonly for non draft invoices
issue8083 review45931002 diffstat: account.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (14 lines): diff -r ec0d07e1249a -r 05dd71d8d455 account.py --- a/account.py Wed Jan 30 11:58:34 2019 +0100 +++ b/account.py Fri Feb 22 19:30:42 2019 +0100 @@ -386,8 +386,9 @@ payment_direct_debit = fields.Boolean("Direct Debit", states={ 'invisible': Eval('type') != 'in', + 'readonly': Eval('state') != 'draft', }, - depends=['type'], + depends=['type', 'state'], help="Check if the invoice is paid by direct debit.") @classmethod