[MERGE] forward port of branch saas-4 up to 7ecaab9
[odoo/odoo.git] / addons / plugin_outlook / plugin_outlook.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
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="inherit_id" ref="base.res_config_installer"/>
8             <field name="arch" type="xml">
9                 <data>
10                     <form position="attributes">
11                         <attribute name="string">Install Outlook Plug-In</attribute>
12                     </form>
13                     <xpath expr="//footer" position="replace">
14                        <footer>
15                             <button string="Close" class="oe_link" special="cancel" />
16                        </footer>
17                     </xpath>
18                     <xpath expr="//separator[@string='title']" position="after" version="7.0">
19                         <group>
20                             <field name="plugin32" widget="url"/>
21                             <field name="plugin64" widget="url"/>
22                         </group>
23                         <separator string="Installation and Configuration Steps"/>
24                         <p>Click on the link above to download the installer for either 32 or 64 bits, and execute it.</p>
25                         <p>System requirements:</p>
26                         <ol>
27                             <li> MS Outlook 2005 or above.</li>
28                             <li> MS .Net Framework 3.5 or above.</li>
29                         </ol>
30                         <p>Outlook plug-in installation:</p>
31                         <ol>
32                             <li>Save the outlook plugin corresponding to your Office version (Office x86 or Office x64).</li>
33                             <li>Double-click on the executable file and install the plugin.</li>
34                             <li>Open Outlook (close it and open it again if it is already closed).</li>
35                             <li>From the Outlook menubar: OpenERP -> Configuration.</li>
36                             <li>Configure your openerp server.</li>
37                         </ol>
38                     </xpath>
39                     <separator string="title" position="attributes">
40                         <attribute name="string"></attribute>
41                     </separator>
42                 </data>
43             </field>
44         </record>
45
46         <record id="action_outlook_installer" model="ir.actions.act_window">
47             <field name="name">Install Outlook Plug-In</field>
48             <field name="type">ir.actions.act_window</field>
49             <field name="res_model">outlook.installer</field>
50             <field name="view_id" ref="view_outlook_installer"/>
51             <field name="view_type">form</field>
52             <field name="view_mode">form</field>
53             <field name="target">new</field>
54         </record>
55
56         <!-- Sales Configuration -->
57         <record id="view_config_outlook_installer" model="ir.ui.view">
58             <field name="name">Sales Application</field>
59             <field name="model">sale.config.settings</field>
60             <field name="inherit_id" ref="base_setup.view_sale_config_settings"/>
61             <field name="arch" type="xml">
62                 <div name="module_plugin_outlook" version="7.0" position="replace">
63                     <div>
64                         <field name="module_plugin_outlook" class="oe_inline"/>
65                         <label for="module_plugin_outlook"/>
66                         <button name="%(action_outlook_installer)d" type="action" string="Download and install the plug-in" icon="gtk-execute"
67                             attrs="{'invisible': [('module_plugin_outlook','=',False)]}" class="oe_link"/>
68                     </div>
69                 </div>
70             </field>
71         </record>
72
73         <record id="action_outlook_wizard" model="ir.actions.act_window">
74             <field name="name">Install Outlook Plug-In</field>
75             <field name="type">ir.actions.act_window</field>
76             <field name="res_model">outlook.installer</field>
77             <field name="view_id" ref="view_outlook_installer"/>
78             <field name="view_type">form</field>
79             <field name="view_mode">form</field>
80             <field name="target">new</field>
81             <field name="context">{'menu':True}</field>
82         </record>
83
84   <!--        <menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10"/>-->
85         <menuitem id="menu_base_config_plugins_outlook" action="action_outlook_wizard" parent="base.menu_base_config" sequence="5"/>
86
87     </data>
88 </openerp>