Add missing safe_eval on email of report for issue1890

(transplanted from 878262851e7fe5ef9cdaf1265a4cb0d8e0526758)
This commit is contained in:
Cédric Krier
2011-03-22 12:08:13 +01:00
parent 0802f16253
commit 1b09a89c8a
+2 -1
View File
@@ -198,7 +198,8 @@ class ActionKeyword(ModelSQL, ModelView):
del res[-1]['report_content_data']
del res[-1]['report_content']
del res[-1]['style_content']
res[-1]['email'] = encoder.encode(res[-1]['email'])
res[-1]['email'] = encoder.encode(safe_eval(res[-1]['email']
or '{}', CONTEXT))
elif action_keyword.action.type == 'ir.action.act_window':
for field in ('domain', 'context', 'search_value'):
del res[-1][field]