From 1d69139dad9ccf3af258867242afb3b0c6f8c93d Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Tue, 19 Feb 2019 22:24:07 +0000 Subject: [PATCH] publish muk_security - 12.0 --- muk_security/__manifest__.py | 2 +- muk_security/models/res_users.py | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/muk_security/__manifest__.py b/muk_security/__manifest__.py index 2d2c553..6b9592f 100644 --- a/muk_security/__manifest__.py +++ b/muk_security/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Security", "summary": """Security Features""", - "version": "12.0.1.5.3", + "version": "12.0.1.5.4", "category": "Extra Tools", "license": "AGPL-3", "website": "http://www.mukit.at", diff --git a/muk_security/models/res_users.py b/muk_security/models/res_users.py index 8ebae1c..e4b2402 100644 --- a/muk_security/models/res_users.py +++ b/muk_security/models/res_users.py @@ -36,12 +36,10 @@ class AccessUser(models.Model): #---------------------------------------------------------- @classmethod - def _browse(cls, ids, env, prefetch=None): - access_ids = [ - id if not isinstance(id, NoSecurityUid) - else super(NoSecurityUid, id).__int__() - for id in ids - ] - return super(AccessUser, cls)._browse( - access_ids, env, prefetch=prefetch - ) \ No newline at end of file + def _browse(cls, ids, *args, **kwargs): + def convert_security_uid(id): + if isinstance(id, NoSecurityUid): + return super(NoSecurityUid, id).__int__() + return id + access_ids = [convert_security_uid(id) for id in ids] + return super(AccessUser, cls)._browse(access_ids, *args, **kwargs) \ No newline at end of file