Browse Source

[FIX] users_ldap_populate: Wrong attribute usage

The variable is a dict, and the desired value must be accessed via key, not attribute.

This fixes a bug introduced in https://github.com/OCA/server-tools/pull/1519.
pull/1531/head
Jairo Llopis 5 years ago
parent
commit
fa96b59aa9
No known key found for this signature in database GPG Key ID: 59564BF1E22F314F
  1. 1
      users_ldap_populate/README.rst
  2. 2
      users_ldap_populate/models/users_ldap.py

1
users_ldap_populate/README.rst

@ -55,6 +55,7 @@ Contributors
* Holger Brunn <hbrunn@therp.nl>
* Daniel Reis <dgreis@sapo.pt>
* Stefan Rijnhart <stefan@opener.am>
* Jairo Llopis <jairo.llopis@tecnativa.com>
Maintainer
----------

2
users_ldap_populate/models/users_ldap.py

@ -160,7 +160,7 @@ class CompanyLDAP(orm.Model):
bool(
self.get_ldap_entry_dicts(
conf,
user_name=unknown_user.login,
user_name=unknown_user['login'],
))
for conf in self.get_ldap_dicts(cr, ids)
)

Loading…
Cancel
Save