[FIX] Fiexed the fucntion args

bzr revid: jam@tinyerp.com-20120305130452-e5nthymr4re0wyix
This commit is contained in:
Jigar Amin - OpenERP
2012-03-05 18:34:52 +05:30
parent 4bef7bd1aa
commit e4ec8a61ae
+1 -1
View File
@@ -435,7 +435,7 @@ class res_partner(osv.osv):
def default_get(self, cr, uid, fields, context=None):
res = super(res_partner, self).default_get( cr, uid, fields, context)
if 'is_company' in res:
res.update({'photo': self._get_photo(self, cr, uid, res.get('is_company', 'contact'), context)})
res.update({'photo': self._get_photo(cr, uid, res.get('is_company', 'contact'), context)})
return res
res_partner()