@ -34,6 +34,7 @@ class CompanyLDAP(orm.Model):
help="LDAP attribute to use to retrieve em-mail address."),
}
_defaults = {
'name_attribute': 'cn',
'mail_attribute': 'mail',
@ -8,7 +8,7 @@
<field name="arch" type="xml">
<field name="ldap_filter" position="after">
<field name="name_attribute" placeholder="e.g. displayName"/>
<field name="name_attribute"/>
<field name="mail_attribute"/>
</field>