changeset 781d6cfafcc5 in modules/account_dunning_email:default details: https://hg.tryton.org/modules/account_dunning_email?cmd=changeset&node=781d6cfafcc5 description: Send only the required fields when fetching a readonly view definition
issue11134 review380081002 diffstat: account.py | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diffs (26 lines): diff -r d669641fb035 -r 781d6cfafcc5 account.py --- a/account.py Wed Apr 06 23:37:41 2022 +0200 +++ b/account.py Fri Apr 08 19:07:12 2022 +0200 @@ -37,21 +37,18 @@ states={ 'required': Bool(Eval('send_email')), 'invisible': ~Eval('send_email'), - }, - depends=['send_email']) + }) email_from = fields.Char( "From", translate=True, states={ 'invisible': ~Eval('send_email'), }, - depends=['send_email'], help="Leave empty for the value defined in the configuration file.") email_contact_mechanism = fields.Selection( 'get_contact_mechanisms', "Contact Mechanism", states={ 'invisible': ~Eval('send_email'), }, - depends=['send_email'], help="Define which e-mail to use from the party's contact mechanisms") @classmethod