[IMP]: ADD Host choice and rename module to Import_sugarcrm
[odoo/odoo.git] / addons / import_sugarcrm / import_sugarcrm_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data>
4
5     <!-- Import Sugarcrm Form View -->
6         <record model="ir.ui.view" id="view_import_sugarcrm_form">
7             <field name="name">import.sugarcrm.form</field>
8             <field name="model">import.sugarcrm</field>
9             <field name="type">form</field>
10             <field name="arch" type="xml">
11                 <form string="Import Sugarcrm">
12                     <group colspan="4" width="400" col="3">
13                          <separator string="Select SugarCRM Module Name" colspan="4"/>
14                          <field name="lead" />
15                          <field name="opportunity" />
16                          <field name="user" />
17                          <field name="username" invisible="1"/>
18                          <field name="password" invisible="1"/>
19                     </group>
20                         <separator string="" colspan="4" />
21                     <group colspan="4" >
22                         <label string="" colspan="2"/>
23                         <button  icon="gtk-cancel" special="cancel" string="_Cancel"/>
24                         <button name="import_all" string="Import"
25                                 type="object" icon="gtk-ok"/>
26                    </group>
27                 </form>
28             </field>
29         </record>
30
31         <!-- Import Sugarcrm Action -->
32
33     <record model="ir.actions.act_window" id="action_import_sugarcrm">
34         <field name="name">Import Sugarcrm</field>
35         <field name="res_model">import.sugarcrm</field>
36         <field name="view_type">form</field>
37         <field name="view_mode">tree,form</field>
38         <field name="view_id" ref="view_import_sugarcrm_form"/>
39         <field name="target">new</field>
40     </record>
41
42
43     </data>
44 </openerp>
45