From ed5f21ac9b6759d76a8533b8d518016e377ebd69 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Wed, 8 Jun 2016 17:49:47 +0200 Subject: [PATCH] [8.0] users_ldap_groups query fix (#448) --- users_ldap_groups/__openerp__.py | 2 +- users_ldap_groups/users_ldap_groups.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/users_ldap_groups/__openerp__.py b/users_ldap_groups/__openerp__.py index 453c39668..2493c0aeb 100644 --- a/users_ldap_groups/__openerp__.py +++ b/users_ldap_groups/__openerp__.py @@ -21,7 +21,7 @@ { "name": "Groups assignment", - "version": "8.0.1.2.0", + "version": "8.0.1.2.1", "depends": ["auth_ldap"], "author": "Therp BV,Odoo Community Association (OCA)", "license": "AGPL-3", diff --git a/users_ldap_groups/users_ldap_groups.py b/users_ldap_groups/users_ldap_groups.py index 0886c3213..02bbf2477 100644 --- a/users_ldap_groups/users_ldap_groups.py +++ b/users_ldap_groups/users_ldap_groups.py @@ -45,7 +45,7 @@ class LDAPOperator(models.AbstractModel): def query(self, ldap_entry, attribute, value, ldap_config, company): query_string = Template(value).safe_substitute(dict( - [(attr, ldap_entry[1][attribute][0]) for attr in ldap_entry[1]] + [(attr, ldap_entry[1][attr][0]) for attr in ldap_entry[1]] ) ) _logger.debug('evaluating query group mapping, filter: %s' %