Add missing safe_eval on email of report for issue1890
(transplanted from 878262851e7fe5ef9cdaf1265a4cb0d8e0526758)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user