From 8b35a2b54aedd644abf11f3ce292fdf43c82d2e5 Mon Sep 17 00:00:00 2001 From: hupo-odoo Date: Wed, 23 Aug 2023 13:57:04 +0200 Subject: [PATCH] [IMP] l10n_es_edi_facturae: include edi documents when mass export in the following commit https://github.com/odoo/odoo/commit/f8654b3501aca6e5d77ced5f73cb351c61684cd2 , we fixed the feature to mass export edi documents from the journal entries list view. However, we forgot to include the Spain localization edi documents to be included in the export. task-3477482 closes odoo/odoo#135072 X-original-commit: e62e1a647991fdd1ed38486b1a00f8de2812768c Signed-off-by: Laurent Smet (las) Signed-off-by: Hugo Poncelet (hupo) --- addons/l10n_es_edi_facturae/models/account_move.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/l10n_es_edi_facturae/models/account_move.py b/addons/l10n_es_edi_facturae/models/account_move.py index 2fc9c206bfb..c2c40afa927 100644 --- a/addons/l10n_es_edi_facturae/models/account_move.py +++ b/addons/l10n_es_edi_facturae/models/account_move.py @@ -375,3 +375,7 @@ class AccountMove(models.Model): except ValueError: errors.append(_('No valid certificate found for this company, Facturae EDI file will not be signed.\n')) return xml_content, errors + + def _get_edi_doc_attachments_to_export(self): + # EXTENDS 'account' + return super()._get_edi_doc_attachments_to_export() + self.l10n_es_edi_facturae_xml_id