diff --git a/bin/addons/base/res/res_user.py b/bin/addons/base/res/res_user.py index 96ccfa52b7b..a33b4ddf28e 100644 --- a/bin/addons/base/res/res_user.py +++ b/bin/addons/base/res/res_user.py @@ -170,10 +170,10 @@ class users(osv.osv): self.pool.get('ir.rule').domain_get.clear_cache(cr.dbname) return res - def unlink(self, cr, uid, ids): + def unlink(self, cr, uid, ids, context=None): if 1 in ids: raise osv.except_osv(_('Can not remove root user!'), _('You can not remove the admin user as it is used internally for resources created by OpenERP (updates, module installation, ...)')) - return super(users, self).unlink(cr, uid, ids) + return super(users, self).unlink(cr, uid, ids, context=context) def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=80): if not args: