Browse Source

fix sql query

pull/931/head
Damien Crier 5 years ago
parent
commit
f3a3970a4b
  1. 2
      users_ldap_populate/models/users_ldap.py

2
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:

Loading…
Cancel
Save