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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
4 deletions
-
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): |
|
|
""" |
|
|
""" |
|
|