From 1d23ae5065e88abcaa2559f341eec0b205f24fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 3 Jun 2008 15:51:37 +0200 Subject: [PATCH] Add tree_invisible on tree view --- tryton/gui/window/view_tree/parse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tryton/gui/window/view_tree/parse.py b/tryton/gui/window/view_tree/parse.py index 779cf4941c..372003e7e2 100644 --- a/tryton/gui/window/view_tree/parse.py +++ b/tryton/gui/window/view_tree/parse.py @@ -49,8 +49,9 @@ class Parse(object): column.pack_start(cell, expand=False) column.add_attribute(cell, 'active', self.pos) self.pos += 1 - column.set_resizable(1) self.fields_order.append(str(attrs['name'])) + column.set_resizable(True) + column.set_visible(not attrs.get('tree_invisible', False)) self.tree.append_column(column) else: import logging