<?xml version="1.0"?>
<openerp>
    <data>
        <record id="view_linkedin_partner_form" model="ir.ui.view">
            <field name="name">res.partner.linkedin.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <field name="name" position="replace">
                    <field name="name" default_focus="1" nolabel="1" widget="linkedin" />
                </field>
            </field>
       </record>
        
        <record id="view_linkedin_config_settings" model="ir.ui.view">
            <field name="name">linkedin_settings</field>
            <field name="model">sale.config.settings</field>
            <field name="inherit_id" ref="base_setup.view_sale_config_settings"/>
            <field name="arch" type="xml">
                <div name="LinkedIn" position="inside">
                    <div attrs="{'invisible':[('module_web_linkedin','=',False)]}">
                        <p>
                            To use the LinkedIn module with this database, an API Key is required. Please follow this procedure:
                        </p>
                        <ul>
                            <li>Go to this URL: 
                                <a href="https://www.linkedin.com/secure/developer" target="_blank">https://www.linkedin.com/secure/developer</a>.
                            </li>
                            <li>Log into LinkedIn.</li>
                            <li>Add a new application and fill the form:
                                <ul>
                                    <li>JavaScript API Domain: <field name="server_domain" readonly="1" style="width:0"/></li>
                                    <li>The programming tool is Javascript</li>
                                </ul>
                            </li>
                            <li>Copy the <strong>API key</strong> here:
                                <field name="api_key" attrs="{'required':[('module_web_linkedin','=',True)]}" class="oe_inline"/>
                            </li>
                        </ul>
                    </div>
                </div>
            </field>
        </record>
        
   </data>
</openerp>
