diff --git a/requirements.txt b/requirements.txt
index 1fa3781a8b..30a3b63d62 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -5,3 +5,4 @@ lxml
pyjwt
pysaml2
python-jose
+python-ldap
diff --git a/users_ldap_mail/README.rst b/users_ldap_mail/README.rst
index fa379371a2..c67c91072e 100644
--- a/users_ldap_mail/README.rst
+++ b/users_ldap_mail/README.rst
@@ -1,7 +1,3 @@
-.. image:: https://odoo-community.org/readme-banner-image
- :target: https://odoo-community.org/get-involved?utm_source=readme
- :alt: Odoo Community Association
-
=====================================
LDAP mapping for user name and e-mail
=====================================
@@ -17,7 +13,7 @@ LDAP mapping for user name and e-mail
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
-.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
+.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
diff --git a/users_ldap_mail/__manifest__.py b/users_ldap_mail/__manifest__.py
index acd8ba2bd8..064a8b6444 100644
--- a/users_ldap_mail/__manifest__.py
+++ b/users_ldap_mail/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "LDAP mapping for user name and e-mail",
- "version": "18.0.1.0.0",
+ "version": "18.0.1.0.1",
"depends": ["auth_ldap"],
"author": "Daniel Reis," "Odoo Community Association (OCA)",
"maintainers": ["joao-p-marques"],
diff --git a/users_ldap_mail/models/users_ldap_model.py b/users_ldap_mail/models/users_ldap_model.py
index 36ef285276..02bbed0d14 100644
--- a/users_ldap_mail/models/users_ldap_model.py
+++ b/users_ldap_mail/models/users_ldap_model.py
@@ -3,7 +3,7 @@
import logging
-from odoo import fields, models, tools
+from odoo import fields, models
_logger = logging.getLogger(__name__)
@@ -42,7 +42,7 @@ def _map_ldap_attributes(self, conf, login, ldap_entry):
for value_key, conf_name in mapping:
try:
if conf[conf_name]:
- values[value_key] = tools.ustr(ldap_entry[1][conf[conf_name]][0])
+ values[value_key] = ldap_entry[1][conf[conf_name]][0]
except KeyError:
_logger.warning(
f'No LDAP attribute "{conf.get(conf_name)}" found for login '
diff --git a/users_ldap_mail/static/description/index.html b/users_ldap_mail/static/description/index.html
index fe40e67146..e47c611517 100644
--- a/users_ldap_mail/static/description/index.html
+++ b/users_ldap_mail/static/description/index.html
@@ -3,16 +3,15 @@
-README.rst
+LDAP mapping for user name and e-mail
-
+
+
LDAP mapping for user name and e-mail
-
-
-
-
-
-
LDAP mapping for user name and e-mail
-

+

This module extends the functionality of the auth_ldap module to support
mail from LDAP and to allow you to get an e-mail address from LDAP
accounts to Odoo users.
@@ -393,7 +387,7 @@
LDAP mapping for user name and e-mail
-
+
To use this module, you need to:
- Open Odoo in your browser
@@ -408,14 +402,14 @@
-
+
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
@@ -423,15 +417,15 @@
Do not contact contributors directly about support or help with technical issues.
-
+
-
+
This module is maintained by the OCA.
-
-
-
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
@@ -457,6 +449,5 @@
-