Browse Source

fix sql query

pull/931/head
Damien Crier 6 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 # -> fetch the user again and reactivate it
self.env.cr.execute( self.env.cr.execute(
"SELECT id FROM res_users " "SELECT id FROM res_users "
"WHERE lower(login=%s",
"WHERE lower(login)=%s",
(login,)) (login,))
res = self.env.cr.fetchone() res = self.env.cr.fetchone()
if res: if res:

Loading…
Cancel
Save