changeset 3293add44dd2 in modules/project:default
details: https://hg.tryton.org/modules/project?cmd=changeset;node=3293add44dd2
description:
        Return empty list by default in get_window_domains

        The clients expect to always receive an iterable value for domains.

        issue9914
        review335291002
diffstat:

 work.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 4d221c64a676 -r 3293add44dd2 work.py
--- a/work.py   Sat Dec 05 11:53:48 2020 +0100
+++ b/work.py   Sun Dec 06 00:36:56 2020 +0100
@@ -97,6 +97,8 @@
             return cls._get_window_domains(['project'])
         elif action.id == Data.get_id('project', 'act_task_form'):
             return cls._get_window_domains(['task'])
+        else:
+            return []
 
     @classmethod
     def _get_window_domains(cls, types):

Reply via email to