Commit Graph
23 Commits
Author SHA1 Message Date
Jérémy Didderen cc6ef173f0 [IMP] account_ebics - Add unit tests
Forward-port of the 18.0 tests. Add 108 tests (101 in the Community job):

- account_ebics: order numbers, camt and CFONB split per account,
  journal lookup, duplicate statements, download and upload wizards,
  client setup with real keys, 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.
- account_ebics_oe_statement_import_test (new, test-only, Enterprise
  job only): same through the Odoo Enterprise camt import.

The bank is simulated by patching the EBICS transport; keys,
certificates and the INI letter are real, created in a temporary
directory. 19.0 differences: no account_ebics_oca_statement_import
module (its glue-specific tests are dropped), res.users.group_ids.
2026-11-09 00:06:34 +01:00
Jérémy Didderen 2dc0f0f957 [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-11-09 00:06:34 +01:00
Jérémy Didderen 70f43474c9 [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-11-09 00:06:34 +01:00
Jérémy Didderen ee2355c1b1 [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-11-09 00:06:34 +01:00
Jérémy Didderen 1ea94f8a3b [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-11-09 00:06:34 +01:00
Jérémy Didderen 30917631fb [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-11-09 00:06:34 +01:00
Jérémy Didderen c977675dc4 [FIX] account_ebics - Do not commit during tests in the Enterprise import
_process_bank_statement_oe commits after each statement. Under tests this
leaves the test transaction (19.0 test cursors even raise on commit).
Skip the commit while a test runs, using odoo.modules.module.current_test:
Registry.in_test_mode() and the thread "testing" flag no longer exist in
19.0.
2026-11-09 00:06:34 +01:00
Jérémy Didderen ce839c29cf [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-11-08 23:51:24 +01:00
Jérémy Didderen 5d8809e2d8 [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-11-08 23:51:24 +01:00
Jérémy Didderen 5abf2337a9 [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-11-08 23:51:24 +01:00
Jérémy Didderen 8407d8dba6 [IMP] addons-repo-template v9.2.1 2026-11-08 23:51:11 +01:00
Jérémy Didderen bdb6f1e1aa [FIX] Fix Copier answers: org slug, repo name and slug 2026-10-13 18:08:54 +02:00
Jérémy Didderen cd321196bb [I18N] Translate fr, nl and de 2026-10-11 23:38:34 +02:00
Jérémy Didderen a5002c4c26 [I18N] Add de translation files 2026-10-11 22:00:35 +02:00
Jérémy Didderen 2cfdbd50f8 [FIX] account_ebics - README facts checked against the code 2026-10-11 16:24:04 +02:00
Jérémy Didderen 16e5df2d4e [IMP] account_ebics - rework readme 2026-10-11 14:47:05 +02:00
Jérémy Didderen 4b88aa2877 translations 2026-07-24 19:11:01 +02:00
Jérémy Didderen aaab8ecfbd translations 2026-06-04 14:34:14 +02:00
Jérémy Didderen 9c98c68058 [ADD] translation files (FR,NL) 2026-03-06 23:29:51 +01:00
Jérémy Didderen 71345b1368 [ADD] translation files (FR,NL) 2026-03-06 21:56:15 +01:00
Jérémy Didderen 5d51b63848 [IMP] account_ebics - refactor ebics file form & list views 2026-03-02 20:36:38 +01:00
Jérémy Didderen e767e6cfdd [ADD] translation files (FR,NL) 2026-03-02 20:36:38 +01:00
Jérémy Didderen 694255fa48 [FIX] pre-commit errors after copier update 2026-03-02 20:36:38 +01:00