From f8129d023968cac33a8a507b1ef25f4f6417ab07 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Wed, 2 Nov 2011 11:12:56 +0100 Subject: [PATCH] Do not use PYSONDecoder() to eval states of button in list view issue2244 (transplanted from a5609b61695b8a7bdb6f7b21a96054b04a5d047a) --- tryton/gui/window/view_form/view/list_gtk/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tryton/gui/window/view_form/view/list_gtk/parser.py b/tryton/gui/window/view_form/view/list_gtk/parser.py index 48a5db18e8..104c5e7abd 100644 --- a/tryton/gui/window/view_form/view/list_gtk/parser.py +++ b/tryton/gui/window/view_form/view/list_gtk/parser.py @@ -921,8 +921,8 @@ class Button(object): store = self.treeview.get_model() record = store.get_value(store.get_iter(path), 0) - state_changes = PYSONDecoder().decode(record.expr_eval( - self.attrs.get('states', {}), check_load=False)) + state_changes = record.expr_eval( + self.attrs.get('states', {}), check_load=False) if state_changes.get('invisible') \ or state_changes.get('readonly'): return True