Fix test on obj_id for print action for issue421

This commit is contained in:
Cédric Krier committed 2008-10-08 11:23:51 +02:00
1 parent cdfd5911ad
commit bb20c88e53
1 file changed
+1 -1
+1 -1
View File
@@ -117,7 +117,7 @@ class ViewForm(ParserView):
self.screen.save_current()
obj_id = self.screen.current_model \
and self.screen.current_model.id
if not obj_id:
if obj_id < 0:
if atype in ('print'):
message(_('You must save this record ' \
'to use the print button!'), self.window)