Browse Source

[8.0] users_ldap_groups query fix (#448)

pull/455/head
Luc De Meyer 9 years ago
committed by Moises Lopez - https://www.vauxoo.com/
parent
commit
ed5f21ac9b
  1. 2
      users_ldap_groups/__openerp__.py
  2. 2
      users_ldap_groups/users_ldap_groups.py

2
users_ldap_groups/__openerp__.py

@ -21,7 +21,7 @@
{ {
"name": "Groups assignment", "name": "Groups assignment",
"version": "8.0.1.2.0",
"version": "8.0.1.2.1",
"depends": ["auth_ldap"], "depends": ["auth_ldap"],
"author": "Therp BV,Odoo Community Association (OCA)", "author": "Therp BV,Odoo Community Association (OCA)",
"license": "AGPL-3", "license": "AGPL-3",

2
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): def query(self, ldap_entry, attribute, value, ldap_config, company):
query_string = Template(value).safe_substitute(dict( 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' % _logger.debug('evaluating query group mapping, filter: %s' %

Loading…
Cancel
Save