Skip to content
Snippets Groups Projects
Commit 8b711569 authored by Michael Tietz's avatar Michael Tietz
Browse files

[FIX] account: reconcile_model matching invoice move


Backport from version 16.0 of _get_default_amls_matching_domain
To decrease the amount of account.move.lines which should be reconciled
Exclude amls of payment move lines where the account is configured
as receivable or payable

closes odoo/odoo#133690

Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
parent afffd3e4
No related branches found
No related tags found
No related merge requests found
......@@ -685,6 +685,7 @@ class AccountReconcileModel(models.Model):
AND move.state = 'posted'
AND account.reconcile IS TRUE
AND aml.reconciled IS FALSE
AND (account.internal_type NOT IN ('receivable', 'payable') OR aml.payment_id IS NULL)
'''
# Add conditions to handle each of the statement lines we want to match
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment