From 499a694fe72c03c41b0dce1f2b366a45b4026022 Mon Sep 17 00:00:00 2001 From: Julien Van Roy Date: Mon, 18 Jul 2022 09:24:01 +0000 Subject: [PATCH] [FIX] account_edi_ubl_cii: fix pdf embedding for E-FFF E-FFF is no longer handled by l10n_be_edi, the addition of the pdf inside the xml should occur in the account_edi_ubl_cii module. See https://github.com/odoo/odoo/commit/4cdd9a0d86d466f200dddd52bca8f48449834f82 Part-of: odoo/odoo#95842 --- addons/account_edi_ubl_cii/models/ir_actions_report.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/account_edi_ubl_cii/models/ir_actions_report.py b/addons/account_edi_ubl_cii/models/ir_actions_report.py index d0a49e07966..71328c46a9b 100644 --- a/addons/account_edi_ubl_cii/models/ir_actions_report.py +++ b/addons/account_edi_ubl_cii/models/ir_actions_report.py @@ -13,8 +13,7 @@ class IrActionsReport(models.Model): _inherit = 'ir.actions.report' def _add_pdf_into_invoice_xml(self, invoice, stream_data): - # exclude efff because it's handled by l10n_be_edi - format_codes = ['ubl_bis3', 'ubl_de', 'nlcius_1'] + format_codes = ['ubl_bis3', 'ubl_de', 'nlcius_1', 'efff_1'] edi_attachments = invoice.edi_document_ids.filtered(lambda d: d.edi_format_id.code in format_codes).attachment_id for edi_attachment in edi_attachments: old_xml = base64.b64decode(edi_attachment.with_context(bin_size=False).datas, validate=True)