From f2160ea20ce6bcc85e848fc0147c2546688bc26a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 19 May 2012 15:40:27 +0200 Subject: [PATCH] Retreive current record after saving issue371001 (transplanted from 8a902d5ad123085bd9c2dda0203483295ee0a386) --- tryton/gui/window/view_form/view/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form.py b/tryton/gui/window/view_form/view/form.py index 5f5e69b584..af75da275d 100644 --- a/tryton/gui/window/view_form/view/form.py +++ b/tryton/gui/window/view_form/view/form.py @@ -166,8 +166,8 @@ class ViewForm(ParserView): focus_widget.grab_focus() def button_clicked(self, widget): - record = self.screen.current_record record_id = self.screen.save_current() + record = self.screen.current_record attrs = widget.attrs if record_id: if not attrs.get('confirm', False) or \