Browse Source

Merge pull request #1405 from arkostyuk/10.0-fix-users_ldap_mail-default-attributes

[10.0][FIX] users_ldap_mail: Provide defaults to attributes properly
pull/1425/head
Pedro M. Baeza 6 years ago
committed by GitHub
parent
commit
419af022e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      users_ldap_mail/models/users_ldap_model.py

12
users_ldap_mail/models/users_ldap_model.py

@ -12,12 +12,16 @@ class CompanyLDAP(models.Model):
_inherit = 'res.company.ldap'
name_attribute = fields.Char(
'Name Attribute', _defaults='cn',
'Name Attribute',
default='cn',
help="By default 'cn' is used. "
"For ActiveDirectory you might use 'displayName' instead.")
"For ActiveDirectory you might use 'displayName' instead.",
)
mail_attribute = fields.Char(
'E-mail attribute', _defaults='mail',
help="LDAP attribute to use to retrieve em-mail address.")
'E-mail attribute',
default='mail',
help="LDAP attribute to use to retrieve em-mail address.",
)
def get_ldap_dicts(self):
"""

Loading…
Cancel
Save