From 64fcd9748dd77ab02c73a5da887c071caaa10490 Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Mon, 8 Oct 2018 14:08:30 +0200 Subject: [PATCH] [FIX] account: fix clause on accounts in reconciliation widget The reconciliation widget must provide visibility on black lines having an account in a different bank journal. Example using Paypal: Invoice: Receivable: debit=x, credit=0 matching_number: A sales : debit=0, credit=x Payment transaction: Paypal : debit=x, credit=0 matching_number: B Receivable: debit=0, credit=x matching_number: A Statement line payment: Bank : debit=x, credit=0 Paypal : debit=0, credit=x matching_number: B --- addons/account/models/account_bank_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index dfd0e9fe02d..055141b4f0e 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -381,7 +381,7 @@ class AccountBankStatementLine(models.Model): #################################################### def _get_common_sql_query(self, overlook_partner = False, excluded_ids = None, split = False): - acc_type = "acc.internal_type IN ('payable', 'receivable')" if (self.partner_id or overlook_partner) else "acc.reconcile = true" + acc_type = "acc.reconcile = true" select_clause = "SELECT aml.id " from_clause = "FROM account_move_line aml JOIN account_account acc ON acc.id = aml.account_id " account_clause = ''