From d98f1ef0e7d2456922dabde94f3bcbdc6d94213a Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 20 Aug 2015 14:40:23 +0200 Subject: [PATCH] [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 --- addons/account/account_bank_statement.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 9a4b83e1c5e..e9c1b5a3758 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -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):