From 93436f45f962e8abe34bd68ac504faaa61354929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 4 Sep 2017 17:26:04 +0200 Subject: [PATCH] [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 ce9ed600ca617ffcda86dabb02df7ca30c340ea6. --- addons/sale/controllers/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/controllers/mail.py b/addons/sale/controllers/mail.py index e88277f4312..cd0701e21db 100644 --- a/addons/sale/controllers/mail.py +++ b/addons/sale/controllers/mail.py @@ -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)