From 669ee5be2feb7a940e886f5511771df00853b4ad Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Wed, 14 Jun 2023 15:26:29 +0000 Subject: [PATCH] [FIX] account_edi: missing edi xml attachment With an mx company setup Create Invoice Validate CFDI Click "Send & Print" Issue: xml not in attachments In e9e90811aeee46989a83b21f9b59071a9c7bc362 the name of method responsible for loading attachment was changed from `_get_default_mail_attachments_data` to `_get_default_email_attachment_data` But the account_edi override wasn't changed so no xml was attached opw-3370272 closes odoo/odoo#125275 X-original-commit: 0bf8296d74002ab691b809c484d38c3ead2c090b Signed-off-by: Josse Colpaert --- addons/account_edi/wizard/account_move_send.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account_edi/wizard/account_move_send.py b/addons/account_edi/wizard/account_move_send.py index 2cbd0ed4a10..3d389f23e4a 100644 --- a/addons/account_edi/wizard/account_move_send.py +++ b/addons/account_edi/wizard/account_move_send.py @@ -17,10 +17,10 @@ class AccountMoveSend(models.Model): }] return [] - def _get_default_mail_attachments_data(self, mail_template, move): + def _get_default_email_attachment_data(self, mail_template, move): """ Returns all the placeholder data and mail template data """ - results = super()._get_default_mail_attachments_data(mail_template, move) + results = super()._get_default_email_attachment_data(mail_template, move) for doc in move.edi_document_ids: results += self._get_mail_attachment_from_doc(doc) return results