[IMP] base: configuration wizard
authorHarry (OpenERP) <hmo@tinyerp.com>
Tue, 14 Sep 2010 14:19:38 +0000 (19:49 +0530)
committerHarry (OpenERP) <hmo@tinyerp.com>
Tue, 14 Sep 2010 14:19:38 +0000 (19:49 +0530)
bzr revid: hmo@tinyerp.com-20100914141938-dst3iy7oi8udrqlr

bin/addons/base/base_update.xml
bin/addons/base/res/res_user.py

index 7639418..856fc20 100644 (file)
                 <form position="attributes">
                   <attribute name="string">Create User</attribute>
                 </form>
-
+                <xpath expr='//separator[@string="title"]' position='attributes'>
+                    <attribute name='string'>New User</attribute>
+              </xpath>
+                <xpath expr="//label[@string='description']"
+                     position="attributes">
+                <attribute name="string">Create additional users and assign them groups that will allow them to have access to selected functionalities within the system. Click on 'Done' if you do not wish to add more users at this stage, you can always do this later.</attribute>
+              </xpath>
+              <xpath expr='//separator[@string="vsep"]' position='attributes'>
+                        <attribute name='string'></attribute>
+                    </xpath>
                 <group string="res_config_contents" position="replace">
-                  <separator string="New User" colspan="4"/>
                   <field name="name"/>
                   <field name="email"/>
                   <field name="login"/>
         </record>
 
         <record id="view_confirm_simple_view_form" model="ir.ui.view">
-            <field name="name">res.users.confirm.simple_view</field>
+            <field name="name">Configure Your Interface</field>
             <field name="model">res.config.view</field>
             <field name="type">form</field>
             <field name="inherit_id" ref="res_config_view_base"/>
             <field name="arch" type="xml">
               <data>
                 <form position="attributes">
-                  <attribute name="string">Choose Your Interface</attribute>
+                  <attribute name="string">Configure Your Interface</attribute>
                 </form>
                 <xpath expr="//label[@string='description']"
                      position="attributes">
-                <attribute name="string">We suggest simplified interface, It has less options and fields but is easier to start with OpenERP. You will be able to switch to the extended interface later from your user preferences.</attribute>
+                <attribute name="string">OpenERP allows you to select between a simplified and extended interface. If you use OpenERP for the first time we strongly advise you to select the simplified interface. You can always switch later from the user preferences.</attribute>
               </xpath>
               <xpath expr='//separator[@string="title"]' position='attributes'>
-                    <attribute name='string'>Choose Your Interface</attribute>
+                    <attribute name='string'>Configure Your Interface</attribute>
               </xpath>
               <xpath expr='//separator[@string="vsep"]' position='attributes'>
                     <attribute name='string'></attribute>
                     </group>
                 </group>
                 <xpath expr='//button[@name="action_skip"]' position='replace'/>
-                <xpath expr='//button[@name="action_next"]' position='attributes'>
-                  <attribute name='string'>Set</attribute>
-                </xpath>
               </data>
             </field>
         </record>
 
         <record id="action_config_simple_view_form" model="ir.actions.act_window">
-            <field name="name">Select Your Interface</field>
+            <field name="name">Configure Your Interface</field>
             <field name="type">ir.actions.act_window</field>
             <field name="res_model">res.config.view</field>
             <field name="view_type">form</field>
index d8645a8..2b1d393 100644 (file)
@@ -560,7 +560,7 @@ class res_config_view(osv.osv_memory):
                                  'Interface', required=True ),
     }
     _defaults={
-        'view':lambda *args: 'simple',
+        'view':lambda self,cr,uid,*args: self.pool.get('res.users').browse(cr, uid, uid).view or 'simple',
     }
 
     def execute(self, cr, uid, ids, context=None):