From 79cdbbd000e109358678aacc9eaf1844e693b67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 7 Aug 2008 11:02:35 +0200 Subject: [PATCH] Fix typo and add parent to message dialog --- tryton/gui/window/view_form/view/form_gtk/many2one.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 a61bf7ae90..2d319c5433 100644 --- a/tryton/gui/window/view_form/view/form_gtk/many2one.py +++ b/tryton/gui/window/view_form/view/form_gtk/many2one.py @@ -437,7 +437,8 @@ class Many2One(WidgetInterface): act = action.copy() obj_id = self._view.modelfield.get(self._view.model) if not obj_id: - common.message(_('You must select a record to use the relation !')) + common.message(_('You must select a record to use the relation!'), + self._window) return False screen = Screen(self.attrs['relation'], self._window) screen.load([obj_id])