odoo/odoo#258138

Created by fw-bot
Merged at 6abb42328f0749a7034349aef3a27af52f299ecc

Statuses:

label
odoo-dev:saas-18.2-18.0-account_peppol-prevent-error-for-empty-attachment-loug-511944-fw
head
9d651c662d290c300e43f0b2cd7bf763bdaa2169
merged
2 weeks ago by Training, Louis Gobert (loug)
odoo/odoo
18.0 #256011
saas-18.2 #258138
saas-18.3 #258205
saas-18.4 #258350
19.0 #258427

[FIX] account_peppol: handle empty attachment

Empty attachments could crash parsing during import, this commit falls back on default journal and move type in case of error, allowing the invoice to be created and the issue logged properly.

Root cause of empty XML remains unclear, likely a 3rd party error.

opw-6060739
opw-6018364

Forward-Port-Of: #256011