[ADD]: Add attachment for emails
[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">
12                     <group colspan="4" width="800">
13                         <separator string="Login Information" colspan="4"/>
14                          <field name="url" colspan="4" widget="url"/>
15                          <field name="username"/>
16                          <newline/>
17                          <field name="password" password="True" />
18                          <separator string="" colspan="4"/>
19                          <group colspan="4" col="6">
20                             <group colspan="1" col="2">    
21                                 <separator string="Address Book" colspan="4"/>
22                                 <field name= "account" />
23                                 <field name= "contact" />
24                             </group>                         
25                             <group colspan="3" col="4">    
26                                 <separator string="CRM" colspan="4"/>
27                                 <field name="opportunity" />
28                                 <field name= "meeting" />
29                                 <field name= "call" />
30                                 <field name= "claim" />
31                              </group>
32                              <group colspan="2" col="2"> 
33                                 <separator string="Project" colspan="4"/>       
34                                      <field name= "project" />
35                                      <field name= "project_task" />
36                                      <field name= "bug"/>
37                             </group>
38                             <group colspan="1" col="2">
39                                 <separator string="HR" colspan="4"/>
40                                  <field name="employee" />  
41                             </group>   
42                             <group colspan="2" col="4">
43                                 <separator string="Document" colspan="4"/>
44                                 <field name="email_history"/>
45                             </group>
46                           </group>  
47                                  <group colspan="4">
48                                         <separator string="Email Notification When Import is finished" colspan="4"/>
49                                         <field name="email_from" widget="email" string="Email Address to Notify"/>
50                                 </group>
51                                 <group colspan="4" groups="base.group_no_one">   
52                                                 <separator string="Multi Instance Management" colspan="4"/>
53                                         <field name="instance_name"/>
54                                </group>
55                     </group>
56                         <separator string="" colspan="4" />
57                     <group colspan="4" col="6">
58                         <label string="" colspan="2"/>
59                         <button  icon="gtk-cancel" special="cancel" string="_Cancel"/>
60                          <button name="import_from_scheduler_all" string="_Schedule recurrent import"
61                                    type="object" icon="gtk-execute"/>
62                         <button name="import_all" string="_Import"
63                                 type="object" icon="terp-camera_test"/>
64                    </group>
65                 </form>
66             </field>
67         </record>
68
69         <!-- Import Sugarcrm Action -->
70
71     <record model="ir.actions.act_window" id="action_import_sugarcrm">
72         <field name="name">Import SugarCRM</field>
73         <field name="res_model">import.sugarcrm</field>
74         <field name="view_type">form</field>
75         <field name="view_mode">tree,form</field>
76         <field name="view_id" ref="view_import_sugarcrm_form"/>
77         <field name="target">new</field>
78     </record>
79
80     <menuitem name="Import"  id="menu_sugarcrm" parent="base.menu_base_partner"/>
81     <menuitem name="Import SugarCRM" id="menu_sugarcrm_import" parent="menu_sugarcrm" action="action_import_sugarcrm" icon="STOCK_EXECUTE"/>
82
83     </data>
84 </openerp>
85