From f8df73da429efeeb576b4bdc5691360d9cc0b4ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 31 Aug 2017 23:42:58 +0200 Subject: [PATCH] Use widget instead of type to set column fixed issue6696 review43371002 --- 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 68d7cd717e..5a104f1867 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -515,7 +515,7 @@ class ViewTree(View): expand = attributes.get('expand', False) column.set_expand(expand) column.set_resizable(True) - if not field or field.attrs['type'] != 'text': + if attributes.get('widget') != 'text': column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED) def get_column_widget(self, column):