<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_marketing_configuration" model="ir.ui.view">
            <field name="name">Configure Marketing</field>
            <field name="model">marketing.config.settings</field>
            <field name="arch" type="xml">
                <form string="Configure Marketing" class="oe_form_configuration" version="7.0">
                    <header>
                        <button string="Apply" type="object" name="execute" class="oe_highlight"/>
                        or
                        <button string="Cancel" type="object" name="cancel" class="oe_link"/>

                    </header>
                    <separator string="Campaigns"/>
                    <group>
                        <label for="id" string="Campaigns Settings"/>
                        <div>
                            <div>
                                <field name="module_marketing_campaign" class="oe_inline"/>
                                <label for="module_marketing_campaign"/>
                            </div>
                            <div attrs="{'invisible':[('module_marketing_campaign','=',False)]}">
                                <field name="module_marketing_campaign_crm_demo" class="oe_inline"/>
                                <label for="module_marketing_campaign_crm_demo"/>
                            </div>
                            <div>
                                <field name="module_crm_profiling" class="oe_inline"/>
                                <label for="module_crm_profiling"/>
                            </div>
                        </div>
                    </group>
                </form>
            </field>
        </record>

        <record id="action_marketing_configuration" model="ir.actions.act_window">
            <field name="name">Configure Marketing</field>
            <field name="res_model">marketing.config.settings</field>
            <field name="view_mode">form</field>
            <field name="target">inline</field>
        </record>

        <menuitem id="menu_marketing_configuration" name="Marketing" parent="base.menu_config"
            sequence="17" action="action_marketing_configuration"/>

    </data>
</openerp>
