[MERGE] thunderbird : Merged Ravi's branch for thunderbird push mail with accented...
[odoo/odoo.git] / addons / thunderbird / thunderbird_installer.xml
index 63359a8..0059cdf 100644 (file)
@@ -9,36 +9,48 @@
       <field name="arch" type="xml">
           <data>
               <form position="attributes">
-                  <attribute name="string">Thunderbird Module Installation</attribute>
+                  <attribute name="string">Thunderbird Plug-In Configuration</attribute>
               </form>
               <separator string="title" position="attributes">
-                   <attribute name="string">Configure Thunderbird Module</attribute>
+                   <attribute name="string">Thunderbird Plug-In</attribute>
               </separator>
               <xpath expr="//label[@string='description']" position="attributes">
-                  <attribute name="string">This module is required for the thuderbird plug-in to work properly.This allows you to select an object that you had like to add to your email and its attachments. You can select a partner, a task, a project, an analytical account, or any other object and attach selected mail as .eml file in attachment of selected record.</attribute>
+                  <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>
               </xpath>
-              <group colspan="8">
-                  <separator string="Thunderbird" colspan="4"/>
-                  <field name="thunderbird"/>
+                 <xpath expr="//button[@string='Install Modules']" position="replace">
+                <button colspan="1" icon="gtk-close" special="cancel" string="_Close" invisible="not context.get('menu',False)"/>
+                <button name="action_next" icon="gtk-go-forward"
+                        type="object" string="Configure" colspan="1" invisible="context.get('menu',False)"/>
+              </xpath>
+              <xpath expr="//button[@string='Skip']" position="replace">
+                <button name="action_skip" icon="gtk-jump-to" special="cancel"
+                        type="object" string="Skip" colspan="1" invisible="context.get('menu',False)"/>
+              </xpath>
+              <xpath expr='//separator[@string="vsep"]' position='attributes'>
+                               <attribute name='string'></attribute>
+                               <attribute name='rowspan'>15</attribute>
+                         </xpath>
+                         <group colspan="8" position="replace">
+              <group colspan="8" height="450" width="750">
+                  <field name="thunderbird" invisible="1" />
                   <field name="name" invisible="1"/>
                   <field name="pdf_name" invisible="1"/>
                   <newline/>
 
                   <field name="plugin_file" filename="name"/>
-                  <button name="process_plugin"  icon="gtk-execute" string="Get Plugin File" type="object"/>
                   <newline/>
-                  <field name="pdf_file" filename="pdf_name"/>
-                  <button name="process_pdf_file"  icon="gtk-execute" string="Get Plugin Installation File" type="object"/>
+                  <field name="pdf_file" filename="pdf_name" widget="url"/>
                   <newline/>
-                  <separator string="Thunderbird plugin installation note." colspan="4"/>
+                  <separator string="Installation and Configuration Steps" colspan="4"/>
                   <field name="description" nolabel="1" colspan="8"/>
               </group>
+              </group>
           </data>
       </field>
     </record>
 
     <record id="action_thunderbird_installer" model="ir.actions.act_window">
-      <field name="name">Thunderbird Module Installation</field>
+      <field name="name">Thunderbird Plug-In Configuration</field>
       <field name="type">ir.actions.act_window</field>
       <field name="res_model">thunderbird.installer</field>
       <field name="view_id" ref="view_thunderbird_installer"/>
     </record>
 
     <record id="thunderbird_installer_todo" model="ir.actions.todo">
-      <field name="action_id" ref="action_thunderbird_installer"/>
-      <field name="sequence">3</field>
+        <field name="action_id" ref="action_thunderbird_installer"/>
+        <field name="restart">always</field>
+        <field name="sequence">3</field>
     </record>
 
-       <!--  Configuration wizard.  -->
-
-    <record id="view_thunderbird_wizard" model="ir.ui.view">
-      <field name="name">thunderbird.wizard</field>
-      <field name="model">thunderbird.installer</field>
-      <field name="type">form</field>
-      <field name="arch" type="xml">
-          <form string= "Thunderbird Installation">
-              <group colspan="4">
-                  <separator string="Configure Thunderbird Module" colspan="4"/>
-                  <group colspan="4" col="10">
-                      <group colspan="2">
-                          <image name="gtk-dialog-info"/>
-                          <newline/>
-                          <label align="0.0" string="This module is required for the thuderbird plug-in to work properly.This allows you to select an object that you had like to add to your email and its attachments. You can select a partner, a task, a project, an analytical account, or any other object and attach selected mail as .eml file in attachment of selected record." width="200"/>
-                       </group>
-                       <group colspan="8">
-                           <separator string="Thunderbird" colspan="4"/>
-                           <field name="thunderbird"/>
-                           <field name="name" invisible="1"/>
-                           <newline/>
-                           <field name="plugin_file"/>
-                           <button name="process_plugin"  icon="gtk-execute" string="Get Plugin File" type="object"/>
-                           <newline/>
-                           <separator string="Thunderbird plugin installation note." colspan="4"/>
-                           <label colspan="8" string="Save The thunderbird plug­in Follow the following step to install thunderbird plug­in ? 1. From Menu Bar, Open Tools ­> Add ons. 2. Now click on install button and a browser window will appear. 3. Just select the (.xpi) file from thunderbird/plugin directory and click ok, a new software installation window will appear and within a short time Install Now  button will be enabled. 4. Click on Install Now and restart Thunderbird. 5. Now Thunderbird plug­in is installed."/>
-                       </group>
-                   </group>
-             </group>
-             <separator string="" colspan="4"/>
-             <group colspan="4">
-                 <label align="0.0" string="" colspan="3"/>
-                 <button colspan="1" icon="gtk-cancel" special="cancel" string="Cancel"/>
-             </group>
-         </form>
-      </field>
-    </record>
 
     <record id="action_thunderbird_wizard" model="ir.actions.act_window">
-      <field name="name">Thunderbird Module Installation</field>
+      <field name="name">Thunderbird Plug-In Configuration</field>
       <field name="type">ir.actions.act_window</field>
       <field name="res_model">thunderbird.installer</field>
-      <field name="view_id" ref="view_thunderbird_wizard"/>
+      <field name="view_id" ref="view_thunderbird_installer"/>
       <field name="view_type">form</field>
       <field name="view_mode">form</field>
       <field name="target">new</field>
+      <field name="context">{'menu':True}</field>
     </record>
 
-       <menuitem id="menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10" />
-       <menuitem id="menu_base_config_plugins_thunderbird" action="action_thunderbird_wizard" name="Thunderbird" parent="menu_base_config_plugins" sequence="10" />
+       <menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10" />
+       <menuitem id="menu_base_config_plugins_thunderbird" action="action_thunderbird_wizard" name="Thunderbird Plug-In" parent="base.menu_base_config_plugins" sequence="10" />
 
   </data>
 </openerp>