Better fix for expr_eval of action['email'] for issue838

This commit is contained in:
Cédric Krier committed 2009-03-03 22:55:26 +01:00
1 parent 31ee74fc5c
commit f1759b1639
1 file changed
+2 -2
+2 -2
View File
@@ -265,8 +265,8 @@ class ViewList(ParserView):
message(_('No record selected!'), self.window)
return False
email = {}
if 'email' in action:
email = self.screen.current_model.expr_eval(action['email'] or '')
if action.get('email'):
email = self.screen.current_model.expr_eval(action['email'])
if not email:
email = {}
email['subject'] = action['name'].replace('_', '')