[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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user