diff options
| author | Thibault Delavallée <tde@odoo.com> | 2017-09-04 17:28:12 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2017-09-05 10:55:41 +0200 |
| commit | ce9ed600ca617ffcda86dabb02df7ca30c340ea6 (patch) | |
| tree | f50a0bc9eb5c227adcffc6327828cd35f7ebc011 | |
| parent | f4d541e51abd7fcb3cd17d3e023b3132b9293d2a (diff) | |
[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.
| -rw-r--r-- | addons/website_portal_sale/controllers/mail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_portal_sale/controllers/mail.py b/addons/website_portal_sale/controllers/mail.py index e88277f4312..cd0701e21db 100644 --- a/addons/website_portal_sale/controllers/mail.py +++ b/addons/website_portal_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) |
