Minor changes
bzr revid: jvo@tinyerp.com-20080918133258-pzofo0y6xo3hjr7x
This commit is contained in:
parent
8fa060ba9a
commit
88f2f257bf
|
@ -129,20 +129,16 @@ class account_invoice(osv.osv):
|
|||
|
||||
def _compute_lines(self, cr, uid, ids, name, args, context={}):
|
||||
result = {}
|
||||
print 'ICI 0'
|
||||
for invoice in self.browse(cr, uid, ids, context):
|
||||
moves = self.move_line_id_payment_get(cr, uid, [invoice.id])
|
||||
src = []
|
||||
print 'ICI 1'
|
||||
lines = []
|
||||
for m in self.pool.get('account.move.line').browse(cr, uid, moves, context):
|
||||
print 'ICI 2'
|
||||
if m.reconcile_id:
|
||||
lines += map(lambda x: x.id, m.reconcile_id.line_id)
|
||||
elif m.reconcile_partial_id:
|
||||
lines += map(lambda x: x.id, m.reconcile_partial_id.line_partial_ids)
|
||||
src.append(m.id)
|
||||
print 'ICI 3'
|
||||
lines = filter(lambda x: x not in src, lines)
|
||||
result[invoice.id] = lines
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue