From 08b662cec43f022c3c92a01cc0ffec50bc4c7067 Mon Sep 17 00:00:00 2001 From: C?dric Krier Date: Tue, 18 Mar 2008 15:52:52 +0100 Subject: [PATCH] Fix screen.form can be None --- tryton/gui/window/view_form/view/list_gtk/editabletree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/list_gtk/editabletree.py b/tryton/gui/window/view_form/view/list_gtk/editabletree.py index 9dfa5ca5..6e6b4602 100644 --- a/tryton/gui/window/view_form/view/list_gtk/editabletree.py +++ b/tryton/gui/window/view_form/view/list_gtk/editabletree.py @@ -80,7 +80,7 @@ class EditableTreeView(gtk.TreeView): self.screen.form.message_state(_('Relation Field: F1: New F2: Open/Search')) elif focus_column and (focus_column._type in ('boolean')): start_editing = False - else: + elif self.screen.form: self.screen.form.message_state('') return super(EditableTreeView, self).set_cursor(path, focus_column, start_editing)