bzr revid: fp@tinyerp.com-20090119164158-3esecirt0doehil3
This commit is contained in:
Fabien Pinckaers 2009-01-19 17:41:58 +01:00
parent c5a3bbccc0
commit d77b6fe5dd
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class res_partner(osv.osv):
for id in ids:
res[id] = {}.fromkeys(field_names, 0)
for pid,type,val in cr.fetchall():
res[pid][maps[type]] = val
res[pid][maps[type]] = (type=='receivable') and val or -val
return res
def _credit_search(self, cr, uid, obj, name, args):