Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][backport] account: Allow skipping bank account creation on reconciliation #1240

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

henrybackman
Copy link

Description of the issue/feature this PR addresses:
Backport of the fix in account module that introduces a system variable to skip creation of bank accounts in the reconciliation of bank statements. See original PR for more information: odoo#168029

Current behavior before PR:
In cases where multiple partners (Partner A, Partner B) use the same bank account due to a third-party payment handler, bank account is assigned for a Partner A when first invoice is reconciled. Subsequent invoices with the same bank account are reconciled automatically to Partner A using this stored bank account, and Partner B not proposed by the reconciliation widget

Desired behavior after PR is merged:
Allow to avoid storing bank account and having wrong invoices proposed by the reconciliation widget


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

This commit introduces system parameter to skip the creation of bank
account in the reconciliation of bank statements.

The issue it can solve happens when 2 different commercial entities
use the same paying partner (ie a partner that is not a subcontact)
to pay their invoices.

When an invoice is paid by the paying partner, Odoo will store the
account number that was used for the transfer on account.bank.statement.line.
When this statement line is reconciled with an invoice, if the bank
account was not stored on the partner previously, a res.partner.bank will be
created automatically.
When another payment is coming from the same bank account, Odoo will
then select the partner linked to the bank account that it did store
previously, even if the payment was for an invoice linked to another partner,
and it will not propose the proper invoice in the reconciliation widget,
even if it uses an exact match on the payment reference number.

Having a parameter allowing to skip creation of the bank account in Odoo
will allow the reconciliation to be based striclty on the reference number.

closes odoo#168029

Signed-off-by: Laurent Smet (las) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants