From 6848037a3f1dbadd2fcf1d71e151533080828e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 22 Sep 2015 09:31:34 +0200 Subject: [PATCH] Don't hide column with unique value in tree view The domain doesn't apply to the children of a tree view, so the unique value is only unique at the top-level. issue4973 review24391002 --- tryton/gui/window/view_form/view/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py index 35bb5dae9d..c16a40e57b 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -1078,7 +1078,7 @@ class ViewTree(View): if not isinstance(inv_domain, bool): inv_domain = simplify(inv_domain) unique, _, _ = unique_value(inv_domain) - column.set_visible(not unique) + column.set_visible(not unique or bool(self.children_field)) def set_state(self): record = self.screen.current_record