Add missing window to message call for issue124

This commit is contained in:
Cédric Krier committed 2008-06-14 22:12:34 +02:00
1 parent af00e371aa
commit f0d8378305
1 file changed
+2 -2
+2 -2
View File
@@ -114,7 +114,7 @@ class ViewForm(ParserView):
and self.screen.current_model.id
if not (obj_id):
message(_('You must save this record ' \
'to use the relate button!'))
'to use the relate button!'), self.window)
return False
self.screen.display()
if atype == 'relate':
@@ -122,7 +122,7 @@ class ViewForm(ParserView):
and self.screen.current_model.id
if not (obj_id):
message(_('You must select a record ' \
'to use the relate button !'))
'to use the relate button !'), self.window)
return False
if 'domain' in act:
act['domain'] = str(