[IMP]MRP :BOM view are improved
[odoo/odoo.git] / addons / plugin_thunderbird / plugin_thunderbird.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="view_thunderbird_installer" model="ir.ui.view">
5             <field name="name">plugin_thunderbird.installer.view</field>
6             <field name="model">plugin_thunderbird.installer</field>
7             <field name="type">form</field>
8             <field name="inherit_id" ref="base.res_config_installer"/>
9             <field name="arch" type="xml">
10                 <data>
11                     <form position="attributes">
12                         <attribute name="string">Install Thunderbird Plug-In</attribute>
13                     </form>
14                      <separator string="title" position="before">
15                         <label string="This plug-in allows you to link your email to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one."/>
16                     </separator>
17                     <xpath expr="//header" position="replace"/>
18                     <xpath expr="//separator[@string='title']" position="after">
19                         <group>
20                             <field name="thunderbird" invisible="1"/>
21                             <field name="plugin_name" invisible="1"/>
22                             <field name="plugin_file" filename="plugin_name" widget="url"/>
23                             <field name="pdf_file" widget="url"/>
24                         </group>
25                         <separator string="Installation and Configuration Steps"/>
26                         <p>Thunderbird plugin installation:</p>
27                         <ul>
28                             <li>1. Save the Thunderbird plug-in.</li>
29                             <li>2. From the Thunderbird menubar: Tools ­> Add-ons -> Screwdriver/Wrench Icon -> Install add-on from file...</li>
30                             <li>3. Select the plug-in (the file named openerp_plugin.xpi).</li>
31                             <li>4. Click "Install Now".</li>
32                             <li>5. Restart Thunderbird.</li>
33                             <li>6. From the Thunderbird menubar: OpenERP -> Configuration.</li>
34                             <li>7. Configure your openerp server.</li>
35                         </ul>
36                     </xpath>
37                     <separator string="title" position="attributes">
38                          <attribute name="string">Install Thunderbird Plug-In</attribute>
39                     </separator>
40                 </data>
41             </field>
42         </record>
43
44         <record id="action_thunderbird_installer" model="ir.actions.act_window">
45           <field name="name">Install Thunderbird Plug-In</field>
46           <field name="type">ir.actions.act_window</field>
47           <field name="res_model">plugin_thunderbird.installer</field>
48           <field name="view_id" ref="view_thunderbird_installer"/>
49           <field name="view_type">form</field>
50           <field name="view_mode">form</field>
51           <field name="target">new</field>
52         </record>
53
54         <!-- Sales Configuration -->
55         <record id="view_config_thunderbird_installer" model="ir.ui.view">
56             <field name="name">Sales Application</field>
57             <field name="model">sale.config.settings</field>
58             <field name="type">form</field>
59             <field name="inherit_id" ref="base_setup.view_sale_config_settings"/>
60             <field name="arch" type="xml">
61                 <field name="module_plugin_thunderbird" version="7.0" position="replace">
62                     <label for="module_plugin_thunderbird"/>
63                     <div>
64                         <field name="module_plugin_thunderbird"/>
65                         <button name="%(action_thunderbird_installer)d" type="action" string="Configure" icon="gtk-execute"
66                             attrs="{'invisible': [('module_plugin_thunderbird','=',False)]}"/>
67                     </div>
68                 </field>
69             </field>
70         </record>
71
72 <!--      <menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10"/>-->
73         <menuitem id="menu_base_config_plugins_thunderbird" action="action_thunderbird_installer" parent="base.menu_base_config" sequence="10"/>
74
75     </data>
76 </openerp>