[16.0][ADD] account_edi_ubl_cii_retrieve_archived_partner_bank #1271
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allow UBL/CII import to retrieve archived partner bank accounts
During UBL/CII invoice import, Odoo attempts to retrieve or create a partner bank
account based on the bank details provided in the electronic document.
When a partner bank account already exists in the system but is archived,
the standard import logic doesn't find it. As a result, Odoo attempts to create
a new bank account record with the same bank account number.
This leads to a failure due to the SQL uniqueness constraint on partner bank
accounts, as duplicated bank account numbers are not allowed, even when one of
them is archived.