Commit Graph
243 Commits
Author SHA1 Message Date
Jérémy Didderen 806aebbe7f [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-09 08:19:48 +01:00
Jérémy Didderen d3e7a57233 [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 08:19:48 +01:00
Jérémy Didderen cf89d8ab32 [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 08:19:48 +01:00
Jérémy Didderen b5a8936c6f [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 08:19:48 +01:00
Jérémy Didderen ae8f602980 [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 08:19:48 +01:00
Jérémy Didderen 905f74647c [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 08:19:48 +01:00
Jérémy Didderen 59b31deb77 [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 08:19:48 +01:00
Jérémy Didderen f489eb0fc2 [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 08:19:48 +01:00
Jérémy Didderen d6d21e4a09 [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-09 08:19:48 +01:00
Jérémy Didderen 56b48c7fc8 [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-09 08:19:48 +01:00
Jérémy Didderen 315f690023 [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-09 08:19:48 +01:00
Jérémy Didderen f14a02953b [IMP] addons-repo-template v9.2.1 2026-11-09 08:19:48 +01:00
noviat-ci-bot 2b7317d8ad update addons table 2026-10-26 09:07:02 +00:00
Luc De Meyer fccfd80f07 [19.0][IMP] copier update 2026-10-26 10:06:36 +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
oca-ci 425cf9515c [UPD] Update account_ebics.pot 2026-10-12 20:06:27 +00:00
Luc De Meyer 68914789b8 [FIX] account_ebics: IndexError in _split_camt for camt.054
Fix IndexError in _split_camt when camt.054 has no currency at statement level.
This commit implements the following changes:
- discard statements without entries before attempting currency extraction
- fall back to Ntry/Amt/@Ccy for camt.054 when Acct/Ccy and Bal/Amt/@Ccy are absent
2026-10-12 22:03:59 +02:00
Jérémy Didderen cd321196bb [I18N] Translate fr, nl and de 2026-10-11 23:38:34 +02:00
fa440a46a9 Translated using Weblate (German)
Currently translated at 61.1% (11 of 18 strings)

Translated using Weblate (German)

Currently translated at 70.5% (12 of 17 strings)

Translated using Weblate (German)

Currently translated at 70.5% (12 of 17 strings)

Translated using Weblate (German)

Currently translated at 94.4% (34 of 36 strings)

Translated using Weblate (German)

Currently translated at 96.9% (283 of 292 strings)

Translated using Weblate (German)

Currently translated at 96.9% (283 of 292 strings)

Translated using Weblate (Dutch)

Currently translated at 82.3% (14 of 17 strings)

Translated using Weblate (Dutch)

Currently translated at 82.3% (14 of 17 strings)

Translated using Weblate (French)

Currently translated at 82.3% (14 of 17 strings)

Translated using Weblate (French)

Currently translated at 82.3% (14 of 17 strings)

Translated using Weblate (Dutch)

Currently translated at 66.6% (12 of 18 strings)

Translated using Weblate (French)

Currently translated at 66.6% (12 of 18 strings)

Co-authored-by: Jérémy Didderen <jeremy.didderen@noviat.com>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/nl/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/nl/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch_payment
Translation: Noviat Generic - Account EBICS - v19/account_ebics_payment_order
2026-10-11 21:19:01 +00:00
WeblateandWeblate Translation Memory cb43c6120c Translated using Weblate (German)
Currently translated at 33.3% (6 of 18 strings)

Translated using Weblate (German)

Currently translated at 17.6% (3 of 17 strings)

Translated using Weblate (German)

Currently translated at 41.6% (15 of 36 strings)

Translated using Weblate (German)

Currently translated at 17.8% (52 of 292 strings)

Translated using Weblate (French)

Currently translated at 58.8% (10 of 17 strings)

Translated using Weblate (French)

Currently translated at 97.9% (286 of 292 strings)

Translated using Weblate (French)

Currently translated at 61.1% (11 of 18 strings)

Translated using Weblate (Dutch)

Currently translated at 58.8% (10 of 17 strings)

Translated using Weblate (Dutch)

Currently translated at 97.9% (286 of 292 strings)

Translated using Weblate (Dutch)

Currently translated at 61.1% (11 of 18 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/nl/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/nl/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/de/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/fr/
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/nl/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch_payment
Translation: Noviat Generic - Account EBICS - v19/account_ebics_payment_order
2026-10-11 20:04:11 +00:00
Jérémy Didderen a5002c4c26 [I18N] Add de translation files 2026-10-11 22:00:35 +02:00
Weblate a9d8081033 Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
2026-10-11 19:03:04 +00:00
Weblate 2965cc6484 Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
2026-10-11 19:03:04 +00:00
oca-ci 44f1567468 [UPD] Update account_ebics_payment_order.pot 2026-10-11 19:02:57 +00:00
oca-ci c8b4b26c4b [UPD] Update account_ebics_batch_payment.pot 2026-10-11 19:02:56 +00:00
oca-ci 8f5a5ca81a [UPD] Update account_ebics.pot 2026-10-11 19:02:55 +00:00
noviat-ci-bot 88527fc456 update addons table 2026-10-11 19:00:18 +00:00
Luc De Meyer 6697eefb09 [IMP] Add payment upload state tracking on payment orders
account_ebics_payment_order:
Add EBICS notebook page with upload info to payment order form
2026-10-11 20:59:48 +02:00
Luc De Meyer 2d301e87f8 [IMP] Add upload state tracking on EBICS payment files
account_ebics:
- Add pain_state and ebics_order_number to ebics.file
- Set these fields after a successful upload
- Add neutralized property to api.Environment

account_ebics_batch_payment:
- Add EBICS notebook page with upload info to batch payment form
- Post chatter message with OrderID after upload

account_ebics_payment_order:
- Fix broken postprocess: replace deprecated active_model/active_id
  context keys with model/id
2026-10-11 20:59:48 +02:00
Jérémy Didderen 2cfdbd50f8 [FIX] account_ebics - README facts checked against the code 2026-10-11 16:24:04 +02:00
noviat-ci-bot 7df6583616 update addons table 2026-10-11 12:47:38 +00:00
Jérémy Didderen 16e5df2d4e [IMP] account_ebics - rework readme 2026-10-11 14:47:05 +02:00
Weblate f0a3fc944a Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
2026-08-12 14:26:33 +00:00
Weblate 2183065310 Update translation files
Updated by "Update PO files to match POT (msgmerge)" add-on in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics/
Translation: Noviat Generic - Account EBICS - v19/account_ebics
2026-08-12 14:26:33 +00:00
oca-ci 050c8aa6c8 [UPD] Update account_ebics.pot 2026-08-12 14:26:25 +00:00
noviat-ci-bot 87be5e1d68 update addons table 2026-08-12 14:23:49 +00:00
Luc De Meyer f5dbf1b754 [FIX] account_ebics: fix EBICS Manager security group 2026-08-12 16:23:12 +02:00
WeblateandWeblate Translation Memory c6edb3ce7d Translated using Weblate (French)
Currently translated at 81.8% (9 of 11 strings)

Translated using Weblate (French)

Currently translated at 88.8% (8 of 9 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/fr/
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch_payment
2026-08-06 10:54:50 +00:00
WeblateandWeblate Translation Memory 6f2178d966 Translated using Weblate (Dutch)
Currently translated at 81.8% (9 of 11 strings)

Translated using Weblate (Dutch)

Currently translated at 88.8% (8 of 9 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_batch_payment/nl/
Translation: Noviat Generic - Account EBICS - v19/account_ebics_batch_payment
2026-08-06 10:54:50 +00:00
oca-ci 7e70f52a33 [UPD] Update account_ebics_batch_payment.pot 2026-08-05 10:54:19 +00:00
Luc De Meyer 14485aa722 [IMP] account_ebics_batch_payment: resolve non-searchable field warning
Replace `related="ebics_config_id.ebics_file_format_ids"` with an explicit
compute method depending on the stored `ebics_config_ids` Many2many, avoiding
a dependency chain through the non-searchable computed field `ebics_config_id`.
2026-08-05 12:51:54 +02:00
Luc De Meyer 1246590592 [IMP] account_ebics_batch_payment: restrict EBICS file format domain to upload formats defined in EBICS config 2026-08-05 12:51:54 +02:00
oca-ci d14d0edf72 [UPD] Update account_ebics_batch_payment.pot 2026-08-04 16:42:18 +00:00
noviat-ci-bot 51862e1b7b update addons table 2026-08-04 16:39:45 +00:00
Luc De Meyer 90b633347e [IMP] account_ebics_batch_payment: pre-fill EBICS file format from payment method 2026-08-04 18:39:20 +02:00
noviat-ci-bot b08c20be60 update addons table 2026-08-04 13:05:22 +00:00
Luc De Meyer d5753e0016 [IMP] allow statement download by OdooBot 2026-08-04 15:04:51 +02:00
WeblateandWeblate Translation Memory 6e9d610631 Translated using Weblate (French)
Currently translated at 66.6% (8 of 12 strings)

Translated using Weblate (French)

Currently translated at 60.0% (6 of 10 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/fr/
Translation: Noviat Generic - Account EBICS - v19/account_ebics_payment_order
2026-07-25 17:54:49 +00:00
WeblateandWeblate Translation Memory d8608dcfa4 Translated using Weblate (Dutch)
Currently translated at 66.6% (8 of 12 strings)

Translated using Weblate (Dutch)

Currently translated at 60.0% (6 of 10 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Weblate Translation Memory <noreply-mt-weblate-translation-memory@weblate.org>
Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v19/account_ebics_payment_order/nl/
Translation: Noviat Generic - Account EBICS - v19/account_ebics_payment_order
2026-07-25 17:54:49 +00:00
oca-ci 4713340bb1 [UPD] Update account_ebics_payment_order.pot 2026-07-24 17:14:09 +00:00