Browse Source

Merge PR #839 into 12.0

Signed-off-by NL66278
12.0
OCA-git-bot 5 years ago
parent
commit
3af359c340
  1. 2
      partner_firstname/models/res_partner.py

2
partner_firstname/models/res_partner.py

@ -137,7 +137,7 @@ class ResPartner(models.Model):
"""
try:
name = " ".join(name.split()) if name else name
except UnicodeDecodeError:
except (UnicodeDecodeError, TypeError):
# with users coming from LDAP, name can be a str encoded as utf-8
# this happens with ActiveDirectory for instance, and in that case
# we get a UnicodeDecodeError during the automatic ASCII -> Unicode

Loading…
Cancel
Save