Fix typo and add parent to message dialog

This commit is contained in:
Cédric Krier committed 2008-08-07 11:02:35 +02:00
1 parent 6b43654535
commit 79cdbbd000
1 file changed
+2 -1
@@ -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])