From 71407c898e37e1bf506a4d62e8137645d579a4a1 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 3 Feb 2016 18:10:38 +0100 Subject: [PATCH] [FIX] the line's bank account is the other party's bank account, not ours --- .../models/account_bank_statement_line.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/account_reconcile_payment_order/models/account_bank_statement_line.py b/account_reconcile_payment_order/models/account_bank_statement_line.py index ece9f634..5bc3cadc 100644 --- a/account_reconcile_payment_order/models/account_bank_statement_line.py +++ b/account_reconcile_payment_order/models/account_bank_statement_line.py @@ -40,15 +40,10 @@ class AccountBankStatementLine(models.Model): select order_id from order_sums where amount = %s''', (Decimal(float_repr(abs(this.amount), digits)),)) order_ids = [i for i, in self.env.cr.fetchall()] - # verify that this ids are accessible to the user and from the - # right bank account if applicable + # verify that this ids are accessible to the user domain = [ ('id', 'in', order_ids), ] - if this.bank_account_id.acc_number: - domain.append( - ('mode.bank_id.acc_number', '=', - this.bank_account_id.acc_number)) return self.env['payment.order'].search(domain) @api.model