urd_odoo_addons/web_linkedin/web_linkedin_view.xml
2017-02-20 17:08:24 +01:00

52 lines
2.6 KiB
XML

<?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 name="website" position="after">
<field name="linkedin_id" invisible="1"/>
<field name="linkedin_url" nolabel="1" widget="linkedin_url"/>
</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>Website URL: <field name="server_domain" readonly="1" style="width:0;white-space: nowrap;"/></li>
<li>The programming tool is Javascript</li>
<li>Website URL inside "JavaScript API Domains" field</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>