diff --git a/auth_ldaps/models/res_company_ldap.py b/auth_ldaps/models/res_company_ldap.py index 378caf8b9..702a36934 100644 --- a/auth_ldaps/models/res_company_ldap.py +++ b/auth_ldaps/models/res_company_ldap.py @@ -35,7 +35,7 @@ def _connect(self, conf): uri = "ldaps://%s:%d" % (conf["ldap_server"], conf["ldap_server_port"]) connection = ldap.initialize(uri) ldap_chase_ref_disabled = ( - self.env['ir.config_parameter'] + self.env["ir.config_parameter"] .sudo() .get_param("auth_ldap.disable_chase_ref") )