[Fix] base/res: Fix typo

bzr revid: sbh@tinyerp.com-20120305122801-1tscam6gm7krharu
This commit is contained in:
Bhumika (OpenERP)
2012-03-05 17:58:01 +05:30
parent 104c6f296c
commit 4bef7bd1aa
+2 -2
View File
@@ -434,8 +434,8 @@ 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_comapny' in res:
res.update({'photo': self._get_photo(self, cr, uid, res.get('is_comapny', 'contact'), context)})
if 'is_company' in res:
res.update({'photo': self._get_photo(self, cr, uid, res.get('is_company', 'contact'), context)})
return res
res_partner()