[FIX] mail: indentation issue when forward-porting
Commitaab6bdd54awas incorrectly forward-ported to 10.0 atabb726d4df. 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:
@@ -87,9 +87,8 @@ class MailController(http.Controller):
|
|||||||
record_sudo.sudo(uid).check_access_rule('read')
|
record_sudo.sudo(uid).check_access_rule('read')
|
||||||
except AccessError:
|
except AccessError:
|
||||||
return cls._redirect_to_messaging()
|
return cls._redirect_to_messaging()
|
||||||
|
if record_action['type'] == 'ir.actions.act_url':
|
||||||
if record_action['type'] == 'ir.actions.act_url':
|
return werkzeug.utils.redirect(record_action['url'])
|
||||||
return werkzeug.utils.redirect(record_action['url'])
|
|
||||||
|
|
||||||
url_params = {
|
url_params = {
|
||||||
'view_type': record_action['view_type'],
|
'view_type': record_action['view_type'],
|
||||||
|
|||||||
Reference in New Issue
Block a user