From 1ffe85f1cb3defcbf932138e2fc13f3a81b34787 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Tue, 19 Dec 2017 14:58:03 +0100 Subject: [PATCH] [FIX] base: prevent App Switcher action to be selected as home action on user Before this commit, one could choose the App Switcher as his Home action. and arriving on /web would trigger an infinite loop at startup After this commit it is not possible to choose the App Switcher as Home action anymore OPW 800323 --- odoo/addons/base/res/res_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/res/res_users.py b/odoo/addons/base/res/res_users.py index d94d744c80e..3e389c7c08c 100644 --- a/odoo/addons/base/res/res_users.py +++ b/odoo/addons/base/res/res_users.py @@ -201,7 +201,7 @@ class Users(models.Model): signature = fields.Html() active = fields.Boolean(default=True) action_id = fields.Many2one('ir.actions.actions', string='Home Action', - help="If specified, this action will be opened at log on for this user, in addition to the standard menu.") + help="If specified, this action will be opened at log on for this user, in addition to the standard menu.", domain=lambda self: [('id', '!=', self.env.ref('base.action_open_website').id)]) groups_id = fields.Many2many('res.groups', 'res_groups_users_rel', 'uid', 'gid', string='Groups', default=_default_groups) log_ids = fields.One2many('res.users.log', 'create_uid', string='User log entries') login_date = fields.Datetime(related='log_ids.create_date', string='Latest connection')