Browse Source

[10.0][FIX] users_ldap_mail: Provide defaults to attributes properly

pull/1405/head
Artem Kostyuk 6 years ago
parent
commit
863a4cc48a
  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' _inherit = 'res.company.ldap'
name_attribute = fields.Char( name_attribute = fields.Char(
'Name Attribute', _defaults='cn',
'Name Attribute',
default='cn',
help="By default 'cn' is used. " help="By default 'cn' is used. "
"For ActiveDirectory you might use 'displayName' instead.")
"For ActiveDirectory you might use 'displayName' instead.",
)
mail_attribute = fields.Char( 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): def get_ldap_dicts(self):
""" """

Loading…
Cancel
Save