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 \