[FIX] website_portal_sale: fix override not giving correctly 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 is a manual forward-port of ce9ed600ca.
This commit is contained in:
Thibault Delavallée
2017-09-06 10:36:16 +02:00
parent 1c3c3ab9fc
commit 93436f45f9
+1 -1
View File
@@ -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)