[FIX] mail: indentation issue when forward-porting

Commit aab6bdd54a was incorrectly forward-ported to
10.0 at abb726d4df . Indeed share users could land
to a wrong backend or frontend page depending on the target app due to an
indentation issue.
This commit is contained in:
Thibault Delavallée
2017-10-18 15:21:44 +02:00
parent 2d46dbcbfd
commit 388bf45853
+2 -3
View File
@@ -87,9 +87,8 @@ class MailController(http.Controller):
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'],