[IMP] Menu is now working ok in folded mode
[odoo/odoo.git] / addons / outlook / outlook_installer.xml
1 <openerp>
2     <data>
3         <record id="view_outlook_installer" model="ir.ui.view">
4             <field name="name">outlook.installer.view</field>
5             <field name="model">outlook.installer</field>
6             <field name="type">form</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">Load Outlook Plug-In</attribute>
12                     </form>
13                     <separator string="title" position="attributes">
14                         <attribute name="string">Load Outlook Plug-In</attribute>
15                     </separator>
16                     <xpath expr="//label[@string='description']" position="attributes">
17                         <attribute name="string">This plug-in allows you to link your e-mail to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one.</attribute>
18                     </xpath>
19                     <xpath expr="//button[@string='Install Modules']" position="replace">
20                         <button colspan="1" icon="gtk-close" special="cancel" string="_Close" invisible="not context.get('menu',False)"/>
21                         <button name="action_next" icon="gtk-go-forward" type="object" string="Configure" colspan="1" invisible="context.get('menu',False)"/>
22                     </xpath>
23                     <xpath expr="//button[@string='Skip']" position="replace">
24                         <button name="action_skip" icon="gtk-jump-to" special="cancel" type="object" string="Skip" colspan="1" invisible="context.get('menu',False)"/>
25                     </xpath>
26                     <xpath expr="//separator[@string=&quot;vsep&quot;]" position="attributes">
27                         <attribute name="string"/>
28                         <attribute name="rowspan">15</attribute>
29                     </xpath>
30                     <group colspan="8" position="replace">
31                         <group colspan="8" height="450" width="750">
32                             <field name="outlook" invisible="1"/>
33                             <field name="name" invisible="1"/>
34                             <field name="doc_name" invisible="1"/>
35                                 <newline/>
36                             <field name="plugin_file" filename="name"/>
37                                 <newline/>
38                             <field name="doc_file" filename="doc_name" widget="url"/>
39                                 <newline/>
40                             <separator string="Installation and Configuration Steps" colspan="4"/>
41                             <field name="description" nolabel="1" colspan="8"/>
42                         </group>
43                     </group>
44                 </data>
45             </field>
46         </record>
47
48         <record id="action_outlook_installer" model="ir.actions.act_window">
49             <field name="name">Load Outlook Plug-In</field>
50             <field name="type">ir.actions.act_window</field>
51             <field name="res_model">outlook.installer</field>
52             <field name="view_id" ref="view_outlook_installer"/>
53             <field name="view_type">form</field>
54             <field name="view_mode">form</field>
55             <field name="target">new</field>
56         </record>
57         
58         <record id="outlook_installer_todo" model="ir.actions.todo">
59             <field name="action_id" ref="action_outlook_installer"/>
60             <field name="category_id" ref="base.category_sales_management_config"/>
61             <field name="sequence">4</field>
62         </record>
63
64         <record id="action_outlook_wizard" model="ir.actions.act_window">
65             <field name="name">Load 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>
73         </record>
74
75         <menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10"/>
76
77         <menuitem id="menu_base_config_plugins_outlook" action="action_outlook_wizard" name="Load Outlook Plug-In" parent="base.menu_base_config_plugins" sequence="10"/>
78     </data>
79 </openerp>