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

Commits on Jul 1, 2024

  1. [FIX] account: Allow skipping bank account creation on reconciliation

    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]>
    grindtildeath authored and henrybackman committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    1624444 View commit details
    Browse the repository at this point in the history