<?xml version="1.0"?>
<data><xpath expr="//sheet" position="before">
                    <field name="use_leads" invisible="1"/>
                    <header>
                        <button name="action_assign_leads" type="object" string="Assign Leads" class="oe_highlight" confirm="This will assign leads to all members. Do you want to proceed?" attrs="{'invisible': ['|', '&amp;', ('use_leads', '=', False), ('use_opportunities', '=', False), ('assignment_enabled', '=', False)]}"/>
                    </header>
                </xpath>
                <xpath expr="//div[@name='options_active']" position="inside">
                    <div class="o_row">
                        <span name="opportunities">
                            <field name="use_opportunities"/>
                            <label for="use_opportunities"/>
                        </span>
                        <span class="o_row" groups="crm.group_use_lead">
                            <field name="use_leads"/>
                            <label for="use_leads" string="Leads"/>
                        </span>
                    </div>
                </xpath>
                <xpath expr="//field[@name='user_id']" position="after">
                    <label for="alias_name" string="Email Alias" attrs="{'invisible': [('use_leads', '=', False),('use_opportunities', '=', False)]}"/>
                    <div class="oe_inline" name="alias_def" attrs="{'invisible': [('use_leads', '=', False),('use_opportunities', '=', False)]}">
                        <field name="alias_id" class="oe_read_only oe_inline" string="Email Alias" required="0" attrs="{'invisible': [('alias_domain', '=', False)]}"/>
                        <div class="oe_inline" name="edit_alias" style="display: inline;">
                            <div class="oe_edit_only" attrs="{'invisible': [('alias_domain', '=', False)]}" dir="ltr">
                                <field name="alias_name" class="oe_inline"/>@<field name="alias_domain" class="oe_inline" readonly="1"/>
                            </div>
                            <button icon="fa-arrow-right" type="action" name="87" string="Configure a custom domain" class="p-0 btn-link" attrs="{'invisible': [('alias_domain', '!=', False)]}"/>
                        </div>
                    </div>
                    <field name="alias_contact" string="Accept Emails From" attrs="{'invisible': [('use_leads', '=', False), ('use_opportunities', '=', False)]}"/>
                </xpath>
                <xpath expr="//group[@name='right']" position="attributes">
                    <attribute name="string">Assignment Rules</attribute>
                    <attribute name="attrs">{'invisible': [('assignment_enabled', '=', False)]}</attribute>
                </xpath>
                <xpath expr="//group[@name='right']" position="inside">
                    <field name="assignment_enabled" invisible="1"/>
                    <field name="assignment_auto_enabled" invisible="1"/>
                    <field name="assignment_domain" widget="domain" string="Domain" options="{'model': 'crm.lead', 'in_dialog': True}" attrs="{'invisible': [('assignment_enabled', '=', False)]}"/>
                    <label for="lead_all_assigned_month_count" string="Assigned Leads Count" attrs="{'invisible': [('assignment_enabled', '=', False)]}"/>
                    <div attrs="{'invisible': [('assignment_enabled', '=', False)]}">
                        <field name="lead_all_assigned_month_count" class="oe_inline"/> /
                        <field name="assignment_max" class="oe_inline"/>
                    </div>
                    <field name="assignment_optout" attrs="{'invisible': [('assignment_auto_enabled', '=', False)]}"/>
                </xpath>
                <xpath expr="//field[@name='member_ids']" position="attributes">
                    <attribute name="attrs">{'invisible': [('assignment_enabled', '=', True)]}</attribute>
                </xpath>
                <xpath expr="//field[@name='crm_team_member_ids']" position="attributes">
                    <attribute name="attrs">{'invisible': [('assignment_enabled', '=', False)]}</attribute>
                </xpath>
            </data>