[FIX] account_bank_statement: reconciliation line

The propositions of reconciliation for a bank statement line must
be taken from account move lines with the same partner_id of this
bank statement line or without partner_id.

opw:647199
This commit is contained in:
Goffin Simon 2015-08-20 14:40:23 +02:00
parent 7349e23837
commit d98f1ef0e7
1 changed files with 2 additions and 1 deletions

View File

@ -531,7 +531,8 @@ class account_bank_statement_line(osv.osv):
('reconcile_id', '=', False),
('state', '=', 'valid'),
('account_id.reconcile', '=', True),
('id', 'not in', excluded_ids)]
('id', 'not in', excluded_ids),
('partner_id', 'in', (False, st_line.partner_id.id))]
return domain
def get_reconciliation_proposition(self, cr, uid, st_line, excluded_ids=None, context=None):