From 7eab1910b2d500f65dfb04a5f2d1547d421bc58d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 22 Aug 2008 11:01:32 +0200 Subject: [PATCH] Set cursor to the new record when inserting in one2many for issue272 --- 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 d39038348c..66c59a23f9 100644 --- a/tryton/gui/window/view_form/view/form_gtk/one2many.py +++ b/tryton/gui/window/view_form/view/form_gtk/one2many.py @@ -499,7 +499,7 @@ class One2Many(WidgetInterface): idx += 1 self.screen.models.model_add(value, position=idx) value.signal('record-changed', value.parent) - self.screen.display() + self.screen.display_next() dia.new() dia.destroy() if sequence: