[IMP] web_linkedin: put the wizard into the sales wizard

bzr revid: nicolas.vanhoren@openerp.com-20120824170111-j64d4l8xc6403a2m
This commit is contained in:
niv-openerp 2012-08-24 19:01:11 +02:00
parent 49b3c7b753
commit 0068c09358
3 changed files with 27 additions and 42 deletions

View File

@ -10,7 +10,7 @@ OpenERP Web LinkedIn module.
This module provides the Integration of the LinkedIn with OpenERP. This module provides the Integration of the LinkedIn with OpenERP.
""", """,
'data': ['web_linkedin_view.xml'], 'data': ['web_linkedin_view.xml'],
'depends' : ['base'], 'depends' : ['crm'],
'js': ['static/src/js/*.js'], 'js': ['static/src/js/*.js'],
'css': ['static/src/css/*.css'], 'css': ['static/src/css/*.css'],
'qweb': ['static/src/xml/*.xml'], 'qweb': ['static/src/xml/*.xml'],

View File

@ -39,8 +39,7 @@ class Binary(openerpweb.Controller):
return base64.b64encode(bfile.read()) return base64.b64encode(bfile.read())
class web_linkedin_settings(osv.osv_memory): class web_linkedin_settings(osv.osv_memory):
_name = 'web_linkedin.settings' _inherit = 'sale.config.settings'
_inherit = 'res.config.settings'
_columns = { _columns = {
'api_key': fields.char(string="API Key", size=50), 'api_key': fields.char(string="API Key", size=50),
'server_domain': fields.char(size=100), 'server_domain': fields.char(size=100),

View File

@ -15,48 +15,34 @@
<record id="view_linkedin_config_settings" model="ir.ui.view"> <record id="view_linkedin_config_settings" model="ir.ui.view">
<field name="name">linkedin_settings</field> <field name="name">linkedin_settings</field>
<field name="model">web_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"> <field name="arch" type="xml">
<form string="Configure Linkedin" version="7.0" class="oe_form_configuration"> <div name="linkedin" position="inside">
<header> <form string="Configure Linkedin" version="7.0" class="oe_form_configuration">
<button string="Apply" type="object" name="execute" class="oe_highlight"/> <p>
or To use the LinkedIn module with this database, an API Key is required. Please follow this procedure:
<button string="Cancel" type="object" name="cancel" class="oe_link"/> </p>
</header> <ul>
<p> <li>Go to this URL:
To use the LinkedIn module with this database, an API Key is required. Please follow this procedure: <a href="https://www.linkedin.com/secure/developer" target="_blank">https://www.linkedin.com/secure/developer</a>.
</p> </li>
<ul> <li>Log into LinkedIn.</li>
<li>Go to this URL: <li>Add a new application and fill the form:
<a href="https://www.linkedin.com/secure/developer" target="_blank">https://www.linkedin.com/secure/developer</a>. <ul>
</li> <li>JavaScript API Domain: <field name="server_domain" readonly="1" style="width:0"/></li>
<li>Log into LinkedIn.</li> <li>The programming tool is Javascript</li>
<li>Add a new application and fill the form: </ul>
<ul> </li>
<li>JavaScript API Domain: <field name="server_domain" readonly="1" style="width:0"/></li> <li>Copy the API key down here:</li>
<li>The programming tool is Javascript</li> </ul>
</ul> <group>
</li> <field name="api_key"/>
<li>Copy the API key down here:</li> </group>
</ul> </form>
<group> </div>
<field name="api_key"/>
</group>
</form>
</field> </field>
</record> </record>
<record id="action_linkedin_config_settings" model="ir.actions.act_window">
<field name="name">Configure Linkedin</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">web_linkedin.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
</record>
<menuitem id="menu_linkedin_config_settings" name="Linkedin" parent="base.menu_config"
sequence="10" action="action_linkedin_config_settings"/>
</data> </data>
</openerp> </openerp>