SEPA Payment Order Error [v14]: ParseError: Wrong element 'LclInstrm' was found instead of 'SvcLvl'

Uploading a payment order to a bank shows the error from the title.



Odoo does not generate a valid SEPA document as one of the incuded orders is not marked as SEPA, though it contains a valid IBAN.

Of course, the nothing in the actual error message gives a hint what could possibly be wrong.
Odoo should issue a warning if it encounters a problem with non-SEPA orders.

All this is from upstream code (OCA).

For details see Redmine Issue #6328.