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