From a935d5bc832ea3c06feb2a5a652562c1a497846e Mon Sep 17 00:00:00 2001 From: Christophe Simonis <chs@odoo.com> Date: Fri, 15 Jun 2018 15:11:06 +0200 Subject: [PATCH] [FIX] base: fail during previous foward-port --- odoo/addons/base/models/res_users.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/odoo/addons/base/models/res_users.py b/odoo/addons/base/models/res_users.py index d27d01d15f60..7a3898fe3c6d 100644 --- a/odoo/addons/base/models/res_users.py +++ b/odoo/addons/base/models/res_users.py @@ -884,12 +884,6 @@ class UsersImplied(models.Model): super(UsersImplied, self).write(vals) return res - if not view.check_access_rights('write', raise_exception=False): - # erp manager has the rights to update groups/users but not - # to modify ir.ui.view - if self.env.user.has_group('base.group_erp_manager'): - view = view.sudo() - #---------------------------------------------------------- # change password wizard #---------------------------------------------------------- -- GitLab