1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="view_outlook_installer" model="ir.ui.view">
5 <field name="name">outlook.installer.view</field>
6 <field name="model">outlook.installer</field>
7 <field name="type">form</field>
8 <field name="inherit_id" ref="base.res_config_installer"/>
9 <field name="arch" type="xml">
11 <form position="attributes">
12 <attribute name="string">Install Outlook Plug-In</attribute>
14 <separator string="title" position="before">
15 <label string="This plug-in allows you to create and link outlook emails with openerp objects."/>
17 <xpath expr="//button[@string='Install Modules']" position="replace">
18 <button colspan="1" icon="gtk-close" special="cancel" string="_Close"/>
20 <xpath expr="//button[@string='Cancel']" position="replace">
22 <xpath expr="//separator[@string='title']" position="after">
23 <group colspan="8" height="450" width="750">
24 <field name="name" widget="url" colspan="4"/>
25 <field name="name2" widget="url" colspan="4"/>
27 <separator string="Installation and Configuration Steps" colspan="4"/>
28 <field name="description" nolabel="1" colspan="8"/>
31 <separator string="title" position="attributes">
32 <attribute name="string">Install Outlook Plug-In</attribute>
38 <record id="action_outlook_installer" model="ir.actions.act_window">
39 <field name="name">Install Outlook Plug-In</field>
40 <field name="type">ir.actions.act_window</field>
41 <field name="res_model">outlook.installer</field>
42 <field name="view_id" ref="view_outlook_installer"/>
43 <field name="view_type">form</field>
44 <field name="view_mode">form</field>
45 <field name="target">new</field>
48 <!-- Sales Configuration -->
49 <record id="view_config_outlook_installer" model="ir.ui.view">
50 <field name="name">Sales Application</field>
51 <field name="model">sale.config.settings</field>
52 <field name="type">form</field>
53 <field name="inherit_id" ref="base.view_sale_config_settings"/>
54 <field name="arch" type="xml">
55 <field name="module_plugin_outlook" position="after">
56 <group colspan="2" attrs="{'invisible': [('module_crm','=',False)]}">
57 <button name="%(action_outlook_installer)d" type="action"
58 string="Configure Outlook Plugin" icon="gtk-execute"/>
64 <record id="action_outlook_wizard" model="ir.actions.act_window">
65 <field name="name">Install Outlook Plug-In</field>
66 <field name="type">ir.actions.act_window</field>
67 <field name="res_model">outlook.installer</field>
68 <field name="view_id" ref="view_outlook_installer"/>
69 <field name="view_type">form</field>
70 <field name="view_mode">form</field>
71 <field name="target">new</field>
72 <field name="context">{'menu':True}</field>
75 <!-- <menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10"/>-->
76 <menuitem id="menu_base_config_plugins_outlook" action="action_outlook_wizard" parent="base.menu_base_config" sequence="5"/>