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"/>
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" />
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" />
32 <group colspan="2" col="2">
33 <separator string="Project" colspan="4"/>
34 <field name= "project" />
35 <field name= "project_task" />
38 <group colspan="1" col="2">
39 <separator string="HR" colspan="4"/>
40 <field name="employee" />
42 <group colspan="2" col="4">
43 <separator string="Document" colspan="4"/>
44 <field name="email_history"/>
48 <separator string="Email Notification When Import is finished" colspan="4"/>
49 <field name="email_from" widget="email" string="Email Address to Notify"/>
51 <group colspan="4" groups="base.group_no_one">
52 <separator string="Multi Instance Management" colspan="4"/>
53 <field name="instance_name"/>
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="terp-camera_test"/>
62 <button name="import_all" string="_Import"
63 type="object" icon="terp-camera_test"/>
69 <!-- Import Sugarcrm Action -->
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>
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"/>