From 1ed66bf3c8d584b32055d53ec813385d17e186e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 Jul 2011 21:54:36 +0200 Subject: [PATCH] Test if any column has width before saving it otherwise list is hidden and there is no width review48004 --- 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 e7db163db0..07b4c5fabd 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -634,7 +634,7 @@ class ViewList(ParserView): if last_col and last_col.name in fields: del fields[last_col.name] - if fields: + if fields and any(fields.itervalues()): try: rpc.execute('model', 'ir.ui.view_tree_width', 'set_width', self.screen.model_name, fields, rpc.CONTEXT)