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

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

        issue9914
        review335291002
        (grafted from 3293add44dd2a5be2f88b5b0f773ce0fdf2904dd)
diffstat:

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

diffs (12 lines):

diff -r 3ae415857d9e -r 804719dd0e31 work.py
--- a/work.py   Sat Dec 05 11:47:21 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