[FIX] Controllers Error: Issue #138 based on log

This commit is contained in:
Yusuf Kapasi 2018-11-02 16:50:30 +05:30
parent 97d95a47fc
commit ed1643ecae

View File

@ -27,4 +27,4 @@ class MailController(MailController):
force_website=True).get_access_action(uid) force_website=True).get_access_action(uid)
if record_action['type'] == 'ir.actions.act_url': if record_action['type'] == 'ir.actions.act_url':
return werkzeug.utils.redirect(record_action['url']) return werkzeug.utils.redirect(record_action['url'])
return super(MailController, cls)._redirect_to_record(cls, model, res_id, access_token=access_token) return super(MailController, cls)._redirect_to_record(model, res_id, access_token=access_token)