Commit Graph
41 Commits
Author SHA1 Message Date
Jérémy Didderen c532ff915a [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-30 20:58:21 +01:00
Jérémy Didderen d488ff7fc7 [I18N] Translate fr, nl and de 2026-11-30 20:58:21 +01:00
Jérémy Didderen 7973dfca3f [I18N] Add de translation files 2026-11-30 20:58:21 +01:00
Jérémy Didderen 37e65b30fa [FIX] account_ebics - README facts checked against the code 2026-11-30 20:58:21 +01:00
Jérémy Didderen 6c73a10cf5 [IMP] account_ebics - rework readme 2026-11-30 20:58:21 +01:00
Jérémy Didderen fe01ad02a0 translations 2026-11-30 20:58:21 +01:00
Jérémy Didderen fa5f05cd6f [ADD] translation files (FR,NL) 2026-11-30 20:58:21 +01:00
Jérémy Didderen 0cb034c546 [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-23 12:40:43 +01:00
Jérémy Didderen b5f2ef43fc [IMP] addons-repo-template v9.2.1 2026-11-23 12:40:43 +01:00
Jérémy Didderen c666f15457 [I18N] Add de translation files 2026-11-23 12:40:43 +01:00
Jérémy Didderen 3a05cda834 [FIX] account_ebics - README facts checked against the code 2026-11-23 12:40:43 +01:00
Jérémy Didderen 44dc937b44 [IMP] account_ebics - rework readme 2026-11-23 12:40:43 +01:00
Jérémy Didderen bc50f03636 translations 2026-11-23 12:40:43 +01:00
Jérémy Didderen 4502b2909f [ADD] translation files (FR,NL) 2026-11-23 12:40:43 +01:00
Jérémy Didderen 9098b67552 [MIG] account_ebics_oe: Migration to 20.0 2026-11-16 21:24:30 +01:00
Jérémy Didderen 078cfa118e [FIX] account_ebics - README facts checked against the code 2026-11-16 21:24:30 +01:00
Jérémy Didderen 00696eb423 [IMP] account_ebics - rework readme 2026-11-16 21:24:30 +01:00
Jérémy Didderen 1efb9adf80 [MIG] account_ebics: Migration to 20.0 2026-11-16 21:10:37 +01:00
Jérémy Didderen e044b83e6c [IMP] account_ebics: pre-commit execution 2026-11-16 21:10:37 +01:00
Jérémy Didderen e4b3bb6832 [FIX] account_ebics - Number duplicate upload file names before the extension
A duplicate upload name got the counter appended to the previous
candidate and after the extension: pay.xml_1, then pay.xml_1_2,
pay.xml_1_2_3. Keep the extension and number from the original name:
pay_1.xml, pay_2.xml.
2026-11-16 21:10:37 +01:00
Jérémy Didderen bdff89f479 [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-16 21:10:37 +01:00
Jérémy Didderen 8b60fdb1c4 [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-16 21:10:37 +01:00
Jérémy Didderen a89cbc7125 [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-16 21:10:37 +01:00
Jérémy Didderen 86e2e13878 [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-16 21:10:37 +01:00
Jérémy Didderen 9b6f49da91 [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-16 21:10:37 +01:00
Jérémy Didderen a08e06c410 [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-16 21:10:37 +01:00
Jérémy Didderen 1df4a1eb3b [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-16 21:10:37 +01:00
Jérémy Didderen c43166e272 [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-16 21:10:37 +01:00
Jérémy Didderen 3de717d550 [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-16 21:10:37 +01:00
Jérémy Didderen f448062dc1 [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-16 21:10:37 +01:00
Jérémy Didderen 167d1195a7 [IMP] addons-repo-template v9.2.1 2026-11-16 21:10:37 +01:00
Jérémy Didderen 43046f7eb3 [I18N] Translate fr, nl and de 2026-11-16 21:10:37 +01:00
Jérémy Didderen 80f9817388 [I18N] Add de translation files 2026-11-16 21:10:37 +01:00
Jérémy Didderen 54da043e44 [FIX] account_ebics - README facts checked against the code 2026-11-16 21:10:37 +01:00
Jérémy Didderen 2435798242 [IMP] account_ebics - rework readme 2026-11-16 21:10:37 +01:00
Jérémy Didderen 462b7c1d8b translations 2026-11-16 21:10:37 +01:00
Jérémy Didderen 7c93c69499 [IMP] account_ebics - refactor ebics file form & list views 2026-11-16 21:10:37 +01:00
Jérémy Didderen f6a5e7a183 [ADD] translation files (FR,NL) 2026-11-16 21:10:37 +01:00
Jérémy Didderen ba3a1e5ea5 [FIX] pre-commit errors after copier update 2026-11-16 21:10:37 +01:00
Jérémy Didderen 8cd1100dd7 [FIX] Fix Copier answers: org slug, repo name and slug 2026-10-13 18:08:57 +02:00
Jérémy Didderen ec1bb13085 [ADD] scaffold 20.0 from addons-repo-template v8.0.1 2026-09-29 15:57:08 +02:00