[FIX] account: Reconcile a statement with move line from partner
Steps to reproduce the bug: - Create a journal "Temporary" with default account (don't care about the names) with Fixed asset type and reconcile = True - Create a vendor bill - Create a payment from this vendor bill in the temporary journal - Create a bank statement and with a line where you specify the vendor - Try to reconcile the temporary account with the bank account Bug: Impossible because the temporary account item was not displayed opw:1884376
This commit is contained in:
@@ -569,7 +569,7 @@ class AccountBankStatementLine(models.Model):
|
||||
# Black lines = unreconciled & (not linked to a payment or open balance created by statement
|
||||
domain_matching = [('reconciled', '=', False)]
|
||||
if partner_id or overlook_partner:
|
||||
domain_matching = expression.AND([domain_matching, [('account_id.internal_type', 'in', ['payable', 'receivable'])]])
|
||||
domain_matching = expression.AND([domain_matching, ['|', ('account_id.internal_type', 'in', ['payable', 'receivable']), '&', ('account_id.internal_type', '=', 'other'), ('account_id.reconcile', '=', True)]])
|
||||
else:
|
||||
# TODO : find out what use case this permits (match a check payment, registered on a journal whose account type is other instead of liquidity)
|
||||
domain_matching = expression.AND([domain_matching, [('account_id.reconcile', '=', True)]])
|
||||
|
||||
Reference in New Issue
Block a user