[MERGE]: Merge with main project branch
[odoo/odoo.git] / addons / base_setup / base_setup_installer.xml
1 <openerp>
2   <data>
3   
4     <record id="view_base_setup_installer" model="ir.ui.view">
5       <field name="name">base.setup.installer.view</field>
6       <field name="model">base.setup.installer</field>
7       <field name="type">form</field>
8       <field name="inherit_id" ref="base.res_config_installer"/>
9       <field name="arch" type="xml">
10         <data>
11           <form position="attributes">
12             <attribute name="string">Install Applications</attribute>
13           </form>
14           <xpath expr="//label[@string='description']" position="attributes">
15                 <attribute name="string">Select the Applications you want your system to cover. If you are not sure about your exact needs at this stage, you can easily install them later.</attribute>
16           </xpath>
17           <xpath expr='//separator[@string="vsep"]' position='attributes'>
18                     <attribute name='string'></attribute>
19                     <attribute name='rowspan'>15</attribute>
20           </xpath>
21           <xpath expr="//button[@string='Install Modules']" position="attributes">
22                     <attribute name="string">Install</attribute>
23           </xpath>
24           <separator string="title" position="attributes">
25             <attribute name="string">Install Applications</attribute>
26           </separator>
27             
28           <group colspan="8">
29             <field name="crm" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
30             <field name="sale" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
31             <field name="project" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
32             <field name="knowledge" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
33             <field name="stock" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
34             <field name="mrp" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
35             <field name="account_voucher" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
36             <field name="account_accountant" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
37             <field name="purchase" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
38             <field name="hr" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
39             <field name="profile_tools" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
40             <field name="marketing" groups="base.group_extended" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
41             <field name="point_of_sale" groups="base.group_extended" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
42             <field name="report_designer" groups="base.group_extended" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
43             <separator string="Install Specific Industry Applications" colspan="4"/>
44             <field name="association" attrs="{'readonly':['|',('auction','=',True),('product_expiry','=',True)]}" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
45             <field name="auction" attrs="{'readonly':['|',('association','=',True),('product_expiry','=',True)]}" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
46             <field name="product_expiry" attrs="{'readonly':['|',('association','=',True),('auction','=',True)]}" on_change="onchange_moduleselection(crm,sale,project,knowledge,stock,mrp,account_accountant,purchase,hr,point_of_sale,marketing,profile_tools,report_designer,association,auction,product_expiry)"/>
47           </group>
48         </data>
49       </field>
50     </record>
51
52     <record id="action_base_setup_installer" model="ir.actions.act_window">
53       <field name="name">Install Applications</field>
54       <field name="type">ir.actions.act_window</field>
55       <field name="res_model">base.setup.installer</field>
56       <field name="view_id" ref="view_base_setup_installer"/>
57       <field name="view_type">form</field>
58       <field name="view_mode">form</field>
59       <field name="target">new</field>
60     </record>
61
62     <record id="base_setup_installer_todo" model="ir.actions.todo">
63         <field name="action_id" ref="action_base_setup_installer"/>
64         <field name="sequence">2</field>
65         <field name="type">normal_recurring</field>
66     </record>
67     
68 <!--     Migrate data from another application Conf Wiz-->
69
70     <record id="view_migrade_application_installer_modules" model="ir.ui.view">
71         <field name="name">migrade.application.installer.modules.form</field>
72         <field name="model">migrade.application.installer.modules</field>
73         <field name="type">form</field>
74         <field name="inherit_id" ref="base.res_config_installer"/>
75         <field name="arch" type="xml">
76             <data>
77                 <form position="attributes">
78                     <attribute name="string">Migrate data from another application</attribute>
79                 </form>
80                 <separator string="title" position="attributes">
81                      <attribute name="string">Migrate data from another application</attribute>
82                 </separator>
83                 <xpath expr="//label[@string='description']" position="attributes">
84                     <attribute name="string">Import data from other applications. Following the selected application, you can import more or less type of data matching to OpenERP objects. Choose the application and then the data you want to import in OpenERP</attribute>
85                 </xpath>
86                 <xpath expr="//button[@string='Install Modules']" position="attributes">
87                     <attribute name="string">Configure</attribute>
88                 </xpath>
89                 <xpath expr='//separator[@string="vsep"]' position='attributes'>
90                     <attribute name='string'></attribute>
91                 </xpath>
92                 <group colspan="8">
93                     <field name="import_saleforce"/>
94                     <field name="import_sugarcrm"/>
95                     <field name="sync_google_contact"/>
96                     <field name="quickbooks_ippids"/>
97                 </group>
98             </data>
99         </field>
100     </record>
101     
102     <record id="action_migrade_application_installer_modules" model="ir.actions.act_window">
103              <field name="name">Migrate data from another application</field>
104              <field name="type">ir.actions.act_window</field>
105              <field name="res_model">migrade.application.installer.modules</field>
106              <field name="view_id" ref="view_migrade_application_installer_modules"/>
107              <field name="view_type">form</field>
108              <field name="view_mode">form</field>
109              <field name="target">new</field>
110    </record>
111  
112    <record id="migrade_application_installer_modules_todo" model="ir.actions.todo">
113       <field name="action_id" ref="action_migrade_application_installer_modules"/>
114       <field name="type">normal</field>
115       <field name="state">skip</field>
116   </record>
117   
118           <!-- Import or create customers configartion view  -->
119         
120          <record id="action_import_create_installer" model="ir.actions.act_window">
121              <field name="name">Import or create customers </field>
122              <field name="type">ir.actions.act_window</field>
123              <field name="res_model">res.partner</field>
124              <field name="view_type">form</field>
125              <field name="view_mode">tree,form</field>
126              <field name="view_id" ref="base.view_partner_tree"/>
127              <field name="help">Create some customers, suppliers and their contacts manually or import a CSV spreadsheet by clicking on the import link</field>
128          </record>
129
130     <!--          register configuration wizard -->
131         <record id="config_wizard_action_import_create_installer" model="ir.actions.todo">
132             <field name="action_id" ref="action_import_create_installer"/>
133             <field name="type">normal</field>
134             <field name="target">current</field>
135             <field name="state">skip</field>
136         </record>
137         
138         <!--        Define default users preferences-->
139
140      <record id="view_user_preferences_config_form" model="ir.ui.view">
141           <field name="name">Define default users preferences</field>
142           <field name="model">user.preferences.config</field>
143           <field name="type">form</field>
144           <field name="inherit_id" ref="base.res_config_view_base"/>
145           <field name="arch" type="xml">
146             <data>
147               <form position="attributes">
148                 <attribute name="string">Define default users preferences</attribute>
149               </form>
150             <xpath expr='//separator[@string="title"]' position='attributes'>
151                   <attribute name='string'>Define default users preferences</attribute>
152             </xpath>
153             <xpath expr="//label[@string='description']"
154                position="attributes">
155               <attribute name="string">Specify default values.This will set the default values for each new user, each user is free to change his own preferences.</attribute>
156             </xpath>
157             <xpath expr='//separator[@string="vsep"]' position='attributes'>
158                   <attribute name='string'></attribute>
159                   <attribute name='rowspan'>12</attribute>
160             </xpath>
161              <group string="res_config_contents" position="replace">
162                     <group colspan="4">
163                         <field colspan="4" name="view" />
164                         <field colspan="4" name="context_lang" />
165                         <field colspan="4" name="context_tz" />
166                         <field colspan="4" name="menu_tips" />
167                   </group>
168               </group>
169             </data>
170           </field>
171       </record>
172
173       <record id="action_user_preferences_config_form" model="ir.actions.act_window">
174           <field name="name">Define default users preferences</field>
175           <field name="type">ir.actions.act_window</field>
176           <field name="res_model">user.preferences.config</field>
177           <field name="view_type">form</field>
178           <field name="view_id" ref="view_user_preferences_config_form"/>
179           <field name="view_mode">form</field>
180           <field name="target">new</field>
181       </record>
182
183       <!--   Register configuration wizard -->
184       
185       <record id="config_action_user_preferences_config_form" model="ir.actions.todo">
186           <field name="action_id" ref="action_user_preferences_config_form"/>
187           <field name="type">normal</field>
188           <field name="state">skip</field>
189       </record>
190       
191       <!--     Config Wiz   Create New User's Login   -->
192         
193       <record id="action_config_access_other_user" model="ir.actions.act_window">
194           <field name="name">Create New User's Login</field>
195           <field name="type">ir.actions.act_window</field>
196           <field name="res_model">res.users</field>
197           <field name="view_type">form</field>
198           <field name="view_mode">form</field>
199           <field name="view_id" ref="base.view_users_form"/>
200       </record>
201       
202       <!--   register configuration wizard  -->
203
204       <record id="config_wizard_action_config_user_form" model="ir.actions.todo">
205           <field name="action_id" ref="action_config_access_other_user"/>
206           <field name="type">normal</field>
207           <field name="target">current</field>
208           <field name="sequence">1000</field>
209           <field name="state">cancel</field>
210       </record>
211       
212       <!--      Inherit company Form -->
213
214       <record id="view_inherit_res_company_logo" model="ir.ui.view">
215           <field name="name">res.company.form.updated</field>
216           <field name="model">res.company</field>
217           <field name="type">form</field>
218           <field name="inherit_id" ref="base.view_company_form" />
219           <field name="arch" type="xml">
220                 <field name="currency_id" position="after">
221                      <newline/>
222                      <separator string="" colspan="4"/>
223                      <group colspan="4" col="2">
224                      <button name="preview_report" string="Preview Report" type="object" icon="gtk-print"/>
225                      </group>
226                 </field>
227           </field>
228       </record>
229
230       <!--   register Upload Logo configuration wizard  -->
231
232       <record id="config_wizard_action_res_company_logo" model="ir.actions.todo">
233           <field name="action_id" ref="action_res_company_logo"/>
234           <field name="type">normal</field>
235           <field name="state">cancel</field>
236       </record>      
237        
238   </data>
239 </openerp>