[FIX] website_portal_sale: fix override not passing all parameters to super

It does not have any impact in current stable as the inherited
method does not use it. However if another addon inherit it
it will not receive access_token depending on call chain. Let
us fix it.
This commit is contained in:
Thibault Delavallée
2017-09-05 10:55:41 +02:00
parent f4d541e51a
commit ce9ed600ca
@@ -26,4 +26,4 @@ class MailController(MailController):
force_website=True).get_access_action(uid)
if record_action['type'] == 'ir.actions.act_url':
return werkzeug.utils.redirect(record_action['url'])
return super(MailController, cls)._redirect_to_record(model, res_id, access_token=None)
return super(MailController, cls)._redirect_to_record(model, res_id, access_token=access_token)