[FIX] l10n_es_edi_facturae: fix error when generating document

Due to an unexpected positional parameter given in the
function call, no document could be generated

closes odoo/odoo#123376

X-original-commit: 2c5a2ca48d855ddbe89da770d97c52416818040d
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Julien Alardot (jual) <jual@odoo.com>
This commit is contained in:
Julien Alardot (jual)
2023-06-01 23:22:46 +02:00
parent 7415f9bbbd
commit 4bf3eb999e
@@ -58,7 +58,7 @@ class AccountMoveSend(models.Model):
if self.l10n_es_edi_facturae_checkbox_xml and invoice._l10n_es_edi_facturae_get_default_enable():
try:
xml_content = invoice._l10n_es_edi_facturae_render_facturae(invoice)
xml_content = invoice._l10n_es_edi_facturae_render_facturae()
except Exception as error:
return {
'error': "".join((_("Errors occured while creating the EDI document (format: %s):", "Facturae"),