From cf9c5ddcda08fc7c300748a94f453b5ae5830ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 14 Apr 2011 16:30:37 +0200 Subject: [PATCH] Modify path only if save succeed --- tryton/gui/window/view_form/screen/screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py index 596cffdd26..8614aa8cea 100644 --- a/tryton/gui/window/view_form/screen/screen.py +++ b/tryton/gui/window/view_form/screen/screen.py @@ -474,7 +474,7 @@ class Screen(SignalEvent): self.current_view.set_cursor() self.current_view.display() return False - if path: + if path and obj_id: path = path[:-1] + ((path[-1][0], obj_id),) self.current_record = self.group.get_by_path(path) self.display()