From 6db40b3a4bd25aefa686d7abb7f096a5732732bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 10 Nov 2014 23:25:26 +0100 Subject: [PATCH] Use the parent children for prefetching only works for same model otherwise it must use the direct group issue4319 review5721003 --- tryton/gui/window/view_form/model/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/model/record.py b/tryton/gui/window/view_form/model/record.py index e47cfb8a2e..5751903101 100644 --- a/tryton/gui/window/view_form/model/record.py +++ b/tryton/gui/window/view_form/model/record.py @@ -84,7 +84,7 @@ class Record(SignalEvent): # Don't compute context for same group or (record.context_get() == record_context))) - if self.parent: + if self.parent and self.parent.model_name == self.model_name: group = sum(self.parent.group.children, []) filter_ = filter_parent_group else: