[FIX] account: payment_ids should list payments of same account than the invoice account
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user