Permalink
Browse files

[FIX] mail: indentation issue when forward-porting

Commit aab6bdd was incorrectly forward-ported to
10.0 at abb726d . Indeed share users could land
to a wrong backend or frontend page depending on the target app due to an
indentation issue.
  • Loading branch information...
tde-banana-odoo committed Oct 18, 2017
1 parent 2d46dbc commit 388bf45853d154e23f0c3653094bc1aa12d06634
Showing with 2 additions and 3 deletions.
  1. +2 −3 addons/mail/controllers/main.py
@@ -87,9 +87,8 @@ def _redirect_to_record(cls, model, res_id):
record_sudo.sudo(uid).check_access_rule('read')
except AccessError:
return cls._redirect_to_messaging()
if record_action['type'] == 'ir.actions.act_url':
return werkzeug.utils.redirect(record_action['url'])
if record_action['type'] == 'ir.actions.act_url':
return werkzeug.utils.redirect(record_action['url'])
url_params = {
'view_type': record_action['view_type'],

0 comments on commit 388bf45

Please sign in to comment.