[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
This commit is contained in:
committed by
De Paoli Quentin
parent
56596e5240
commit
64fcd9748d
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user