[FIX] account: payment_ids should list payments of same account than the invoice account

This commit is contained in:
Denis Ledoux 2014-08-06 19:00:01 +02:00
parent 629e3709d0
commit 5ca6b09375
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ class account_invoice(osv.osv):
lines = []
if invoice.move_id:
for m in invoice.move_id.line_id:
if m.account_id != invoice.account_id:
continue
temp_lines = []
if m.reconcile_id:
temp_lines = map(lambda x: x.id, m.reconcile_id.line_id)