changeset 014e162a39b1 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset&node=014e162a39b1
description:
Do not request model notifications if they are already empty
issue11411
review388371002
diffstat:
tryton/common/common.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r fdfcec280ed6 -r 014e162a39b1 tryton/common/common.py
--- a/tryton/common/common.py Tue Apr 19 18:20:56 2022 +0200
+++ b/tryton/common/common.py Tue Apr 19 23:17:51 2022 +0200
@@ -287,7 +287,7 @@
class ModelNotification:
- _depends = {}
+ _depends = None
def load_names(self):
try:
@@ -297,7 +297,7 @@
pass
def get(self, model):
- if not self._depends:
+ if self._depends is None:
self.load_names()
return self._depends.get(model, [])