Tejaskumar Tank (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-server/trunk-usability-improve_addons_base-tta into 
lp:~openerp-dev/openobject-server/trunk-usability.

Requested reviews:
  Amit (Open ERP) (apa-tiny)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-usability-improve_addons_base-tta/+merge/63206
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-usability-improve_addons_base-tta/+merge/63206
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/trunk-usability.
=== modified file 'openerp/addons/base/base_update.xml'
--- openerp/addons/base/base_update.xml	2011-01-06 17:38:28 +0000
+++ openerp/addons/base/base_update.xml	2011-06-02 09:55:52 +0000
@@ -83,14 +83,26 @@
                                     groups="base.group_multi_company"
                                     on_change="on_change_company_id(company_id)" />
                             <field name="view" readonly="0"/>
-                            <label string="" colspan="2"/>
-                            <separator string="Default Filters" colspan="4"/>
-                            <newline/>
+                            <label string="" colspan="2"/>                            
                         </page>
                          <page string="Preferences">
-                            <field name="context_lang" completion="1" readonly="0"/>
-                            <field name="context_tz" completion="1" readonly="0"/>
-                            <field name="menu_tips" colspan="2" readonly="0"/>
+                         	<group col="6" colspan="4">                
+                         		<field name="photo" widget="image" nolabel="1"/>         		
+                         		<field name="name" string="User Name"/>
+                         		<field name="new_password" password="True"/>
+                         		<button string="Change" name="_set_new_password(name,new_password)"/>
+                            </group>
+                            <group col="2" colspan="2">
+                            	<separator string="Preferencies" colspan="2"/>
+                            	<newline/>
+                            	<field name="context_lang" completion="1" readonly="0"/>
+   	                        	<field name="context_tz" completion="1" readonly="0"/>
+       	                    	<field name="menu_tips" colspan="2" readonly="0"/>
+       	                    </group>
+       	                    <group col="2" colspan="2">
+       	                    	<separator string="Default Filters" colspan="2"/>
+       	                    	<newline/>
+       	                    </group>
                             <separator string="Email &amp; Signature" colspan="4"/>
                             <group colspan="4"><field name="user_email" widget="email" readonly="0"/></group>
                             <field colspan="4" name="signature" readonly="0" nolabel="1"/>

=== modified file 'openerp/addons/base/res/partner/partner.py'
--- openerp/addons/base/res/partner/partner.py	2011-04-21 06:15:44 +0000
+++ openerp/addons/base/res/partner/partner.py	2011-06-02 09:55:52 +0000
@@ -267,7 +267,12 @@
             cr, uid,
             model_data.search(cr, uid, [('module','=','base'),
                                         ('name','=','main_partner')])[0],
-            ).res_id
+            ).res_id             
+    def create(self, cr, user, vals, context=None):
+        if vals.has_key('address') and vals['address'] == []:        
+            address={'address': [[0, 0, {'type': 'default'}]]}        
+            vals.update(address)
+        return super(res_partner, self).create(cr, user, vals, context)
 res_partner()
 
 class res_partner_address(osv.osv):
@@ -300,6 +305,7 @@
     _defaults = {
         'active': lambda *a: 1,
         'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'res.partner.address', context=c),
+        'type':'default',
     }
 
     def name_get(self, cr, user, ids, context={}):

=== modified file 'openerp/addons/base/res/res_user.py'
--- openerp/addons/base/res/res_user.py	2011-05-06 09:37:04 +0000
+++ openerp/addons/base/res/res_user.py	2011-06-02 09:55:52 +0000
@@ -248,6 +248,7 @@
         'user_email': fields.function(_email_get, method=True, fnct_inv=_email_set, string='Email', type="char", size=240),
         'menu_tips': fields.boolean('Menu Tips', help="Check out this box if you want to always display tips on each menu action"),
         'date': fields.datetime('Last Connection', readonly=True),
+        'photo': fields.binary('Photo'),
     }
 
     def on_change_company_id(self, cr, uid, ids, company_id):

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to