Skip to content

Conversation

@sbejaoui
Copy link

@sbejaoui sbejaoui commented Jan 5, 2026

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.

@sbejaoui
Copy link
Author

sbejaoui commented Jan 5, 2026

cc/ @jbaudoux , @lmignon

@sbejaoui sbejaoui force-pushed the 16.0-account_edi_ubl_cii_retrieve_archived_partner_bank-sbj branch from 1e8f191 to 9b7e25e Compare January 5, 2026 15:48
Allow UBL/CII import to retrieve archived partner bank accounts
@sbejaoui sbejaoui force-pushed the 16.0-account_edi_ubl_cii_retrieve_archived_partner_bank-sbj branch from 9b7e25e to 3d4daea Compare January 5, 2026 15:58
@sbejaoui
Copy link
Author

sbejaoui commented Jan 5, 2026

tests are failing in 16.0

@jbaudoux
Copy link
Contributor

jbaudoux commented Jan 6, 2026

@alexis-via Tests in account_invoice_import_simple_pdf are failing. Can you have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants