<?xml version="1.0"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="company_form_view">
            <field name="name">res.company.form.inherit.users_ldap_groups</field>
            <field name="model">res.company</field>
            <field name="inherit_id" ref="auth_ldap.company_form_view"/>
            <field name="arch" type="xml">

                <xpath expr="//form[@string='LDAP Configuration']" position="inside">
                    <group string="Map User Groups" >
                        <field name="only_ldap_groups" />
                        <field name="group_mappings" colspan="4" nolabel="1">
                          <tree editable="top">
                            <field name="ldap_attribute" attrs="{'required': [('operator','not in',['query'])], 'readonly': [('operator','in',['query'])]}" />
                            <field name="operator" />
                            <field name="value" />
                            <field name="group" />
                          </tree>
                        </field>
                    </group>
                </xpath>

            </field>
        </record>
     </data>
</openerp>