Commit Graph
20 Commits
Author SHA1 Message Date
Jérémy Didderen a1fc381121 [IMP] account_ebics - Add unit tests
Add 97 tests:

- account_ebics: order numbers, camt and CFONB split per account,
  journal lookup, duplicate statements, download and upload wizards,
  key initialisation (INI/HIA/HPB), passphrase change, admin orders.
- account_ebics_batch: scheduled import, import log, reprocess.
- account_ebics_payment_order / account_ebics_batch_payment: upload of
  the payment file and link to the payment document.
- account_ebics_statement_import_test (new, test-only, not to install
  in production): installs the OCA camt and CFONB parsers in CI and
  runs the end-to-end statement import.

The bank is simulated by patching ebics.xfer._setup_client, or the
fintech client classes for the key initialisation; keys, certificates
and the INI letter are real, created in a temporary directory.
2026-10-27 23:14:34 +01:00
Jérémy Didderen ed0bf5d6ae [FIX] account_ebics - Report passphrase mismatch when checking keys
The keyring was built outside the try block, and fintech raises the
passphrase error from the EbicsKeyRing constructor: a wrong passphrase
showed a raw ValueError traceback instead of "Passphrase mismatch.".
When another keyring instance on the same file is still open in the
worker, fintech raises RuntimeError instead, which is now caught too.
2026-10-27 23:02:51 +01:00
Jérémy Didderen 8c7484acbf [FIX] account_ebics - Explain missing journal in EBICS key initialisation
ebics_init_1 read journal_ids[0] before checking it, so a configuration
without journal raised an IndexError instead of the "No bank defined"
message.
2026-10-27 21:38:40 +01:00
Jérémy Didderen b0e1b053e9 [FIX] account_ebics - Report errors of EBICS administrative orders
The note was not initialised, so a failed client setup raised a
TypeError on note += ...; and functional errors were not caught, showing
a raw traceback. Initialise the note and report EbicsFunctionalError
like EbicsTechnicalError.
2026-10-27 21:38:40 +01:00
Jérémy Didderen 8147d3fa9c [FIX] account_ebics - Allow removing pain.002 EBICS files
The pain.002 unlink hook raised NotImplementedError, so no EBICS file
with that processing method could be deleted. Make it a no-op
placeholder like the other formats.
2026-10-27 21:38:40 +01:00
Jérémy Didderen bb0fa44931 [FIX] account_ebics - Wrap order number ZZZZ to A000
ZZZZ is accepted by the order number constraint, but the next number was
computed as 0000, which the constraint then rejects, blocking H003
uploads. Wrap it to A000 like ZZZY already does.
2026-10-27 21:38:40 +01:00
Jérémy Didderen f9b94beb68 [FIX] account_ebics - Block removal of confirmed EBICS configurations
The ondelete guard checked state "active", which ebics.config does not
have (draft/confirm), so confirmed configurations could be deleted.
Same check as on 19.0.
2026-10-27 21:38:40 +01:00
Jérémy Didderen f44076ff69 [FIX] account_ebics - Do not commit during tests in the Enterprise import
_process_bank_statement_oe commits after each statement. Under tests this
left the test transaction. Skip the commit when the registry is in test
mode or the current thread is a test thread.
2026-10-27 21:38:40 +01:00
Jérémy Didderen 2753328caa [REM] account_ebics - Remove unused ebics.xfer._update_order_number
Every caller uses ebics.config._update_order_number. The wizard copy was
dead and wrong: it did not reset Z to 0 when carrying (A0ZZ -> A1ZZ).
2026-10-27 21:38:40 +01:00
Jérémy Didderen f2d9f1138a [FIX] account_ebics - Report camt statements without account number
The xpath result was indexed before the emptiness check, so a statement
without IBAN or other account id raised an IndexError instead of the
"No bank account number found." notification.
2026-10-27 21:38:40 +01:00
Jérémy Didderen 3585c85298 [FIX] account_ebics - Stop camt split on an invalid XML file
The error was noted but processing went on with root.nsmap, raising an
AttributeError. Unparseable content now also yields the "Invalid XML
file." notification instead of an XMLSyntaxError.
2026-10-27 21:38:39 +01:00
Jérémy Didderen 296695f97a [IMP] addons-repo-template v9.2.1 2026-10-27 21:38:39 +01:00
Jérémy Didderen f30034fe5c [I18N] Translate fr, nl and de 2026-10-11 22:52:55 +02:00
Jérémy Didderen 7c31236cc3 [I18N] Add de translation files 2026-10-11 22:03:43 +02:00
Jérémy Didderen 5e03a670bc [IMP] account_ebics - Backport the README rework from 19.0 2026-10-11 16:24:07 +02:00
Jérémy Didderen 894686d7cd translations 2026-06-04 14:16:13 +02:00
Jérémy Didderen 6ad2b5e634 [IMP] account_ebics - refactor ebics file form & list views 2025-11-18 23:09:25 +01:00
Jérémy Didderen cde05df9d5 [ADD] translation files (FR,NL) 2025-09-01 01:29:09 +02:00
Jérémy Didderen 284fd18db7 [FIX] pre-commit errors after copier update 2025-08-11 09:24:30 +02:00
Jérémy Didderen 59e3c289b5 [UPD] copier update 2025-08-11 09:24:30 +02:00