changeset 5b324b40ca72 in modules/account_eu:default
details: 
https://hg.tryton.org/modules/account_eu?cmd=changeset&node=5b324b40ca72
description:
        Send only the required fields when fetching a readonly view definition

        issue11134
        review380081002
diffstat:

 account.py |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 380f18498aa7 -r 5b324b40ca72 account.py
--- a/account.py        Wed Apr 06 23:37:41 2022 +0200
+++ b/account.py        Fri Apr 08 19:07:12 2022 +0200
@@ -30,8 +30,7 @@
         states={
             'readonly': (Bool(Eval('template', -1))
                 & ~Eval('template_override', False)),
-            },
-        depends=['template', 'template_override'])
+            })
 
 
 class ECSalesList(ModelSQL, ModelView):
@@ -117,14 +116,12 @@
         'account.fiscalyear', "Fiscal Year", required=True,
         domain=[
             ('company', '=', Eval('company')),
-            ],
-        depends=['company'])
+            ])
     period = fields.Many2One(
         'account.period', "Period",
         domain=[
             ('fiscalyear', '=', Eval('fiscalyear')),
-            ],
-        depends=['fiscalyear'])
+            ])
 
     @classmethod
     def default_company(cls):

Reply via email to