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.
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.
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.
_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.
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.
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.
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
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
The Odoo Enterprise CAMT parser may drop transactions during import
e.g. in case of duplicates or when a 0.00 amount transaction is added
to give some banking information via the CAMT file.
This PR fixes a stack trace that occurs when that happens.