[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 <jco@odoo.com>
This commit is contained in:
Andrea Grazioso (agr-odoo)
2023-06-16 01:40:15 +02:00
parent e82a35b588
commit 669ee5be2f
@@ -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