From f3a3970a4bbc2bdb7c4b219f903525ae72d3b3b8 Mon Sep 17 00:00:00 2001 From: Damien Crier Date: Fri, 25 Jan 2019 11:01:22 +0100 Subject: [PATCH] fix sql query --- users_ldap_populate/models/users_ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: