diff --git a/tryton/gui/window/view_form/view/form_gtk/many2one.py b/tryton/gui/window/view_form/view/form_gtk/many2one.py index 36b6952201..adc34f2ba0 100644 --- a/tryton/gui/window/view_form/view/form_gtk/many2one.py +++ b/tryton/gui/window/view_form/view/form_gtk/many2one.py @@ -136,7 +136,12 @@ class Dialog(object): while True: res = self.dia.run() if res == gtk.RESPONSE_OK: - if self.screen.save_current(): + obj_id = None + try: + obj_id = self.screen.save_current() + except Exception, exception: + common.process_exception(exception, self.dia) + if obj_id: return (True, (self.screen.current_model.id, self.screen.current_model.rec_name())) else: