diff --git a/users_ldap_populate/models/users_ldap.py b/users_ldap_populate/models/users_ldap.py index 01f8c4122..0e820fb9f 100644 --- a/users_ldap_populate/models/users_ldap.py +++ b/users_ldap_populate/models/users_ldap.py @@ -78,7 +78,7 @@ class CompanyLDAP(models.Model): # -> fetch the user again and reactivate it self.env.cr.execute( "SELECT id FROM res_users " - "WHERE lower(login=%s", + "WHERE lower(login)=%s", (login,)) res = self.env.cr.fetchone() if res: