From 1768b21d89652f95049012365c8e06fbb011d5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 10 Nov 2014 23:24:23 +0100 Subject: [PATCH] get_focus_chain can return None issue4318 review5721002 --- tryton/gui/window/view_form/view/form_gtk/one2many.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/one2many.py b/tryton/gui/window/view_form/view/form_gtk/one2many.py index c4e644c991..b7e3b640de 100644 --- a/tryton/gui/window/view_form/view/form_gtk/one2many.py +++ b/tryton/gui/window/view_form/view/form_gtk/one2many.py @@ -301,7 +301,7 @@ class One2Many(Widget): # New button must be added to focus chain to allow keyboard only # creation when there is no existing record on form view. - focus_chain = self.title_box.get_focus_chain() + focus_chain = self.title_box.get_focus_chain() or [] if o2m_size == 0 and self.screen.current_view.view_type == 'form': if self.but_new not in focus_chain: focus_chain.append(self.but_new)