[MERGE] latest trunk
[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 Data From SugarCRM" version="7.0">
12             <header>
13                 <button name="import_all" string="_Import"
14                         type="object" class="oe_highlight"/>
15                 <button name="import_from_scheduler_all" string="_Schedule Recurrent Imports"
16                         type="object"/> or
17                 <button special="cancel" string="_Cancel" class="oe_link"/>
18             </header>
19             <sheet>
20               <group col="8" >
21                 <group colspan="5">
22                   <separator string="Login Information" colspan="4"/>
23                   <field name="url" colspan="2" widget="url"/>
24                   <field name="username" colspan="2"/>
25                   <field name="password" password="True" colspan="2"/>
26
27                   <group colspan="4">
28                     <separator string="Data to Import" colspan="4"/>
29                     <group colspan="1" col="2">
30                       <field name="user" />
31                       <field name= "account" />
32                       <field name= "contact" />
33                     </group>
34                     <group colspan="1" col="2">
35                       <field name="opportunity" />
36                       <field name= "call" />
37                       <field name= "meeting" />
38                       <field name= "claim" />
39                     </group>
40                     <group colspan="1" col="2">
41                       <field name= "project" />
42                       <field name= "project_task" />
43                       <field name= "bug"/>
44                     </group>
45                     <group colspan="1" col="2">
46                       <field name="employee" />
47                       <field name="email_history"/>
48                       <field name= "document" />
49                     </group>
50                   </group>
51
52                   <group colspan="4">
53                     <separator string="Email Notification When Import is Finished" colspan="2"/>
54                     <field name="email_from" widget="email" string="Email Address to Notify" colspan="2"/>
55                   </group>
56
57                   <group colspan="4" groups="base.group_no_one">
58                     <separator string="Multi Instance Management" colspan="4"/>
59                     <field name="instance_name" colspan="2"/>
60                 </group>
61               </group>
62               </group>
63           </sheet>
64         </form>
65       </field>
66     </record>
67
68     <!-- Import Sugarcrm Action -->
69
70     <record model="ir.actions.act_window" id="action_import_sugarcrm">
71       <field name="name">Import SugarCRM</field>
72       <field name="res_model">import.sugarcrm</field>
73       <field name="view_type">form</field>
74       <field name="view_mode">tree,form</field>
75       <field name="view_id" ref="view_import_sugarcrm_form"/>
76       <field name="target">new</field>
77     </record>
78
79
80     <menuitem name="Import SugarCRM" id="menu_sugarcrm_import" parent="base.menu_import_crm" action="action_import_sugarcrm" icon="STOCK_EXECUTE" sequence="20"/>
81
82   </data>
83 </openerp>