[FIX] l10n_es_edi_sii: remove call to _post_invoice_edi

a66ac063e01afbcc5bec2e6f56da81340b28aaa7 introduced the use of
`_post_invoice_edi` method on `account.edi.format`, as it is a forward
port of a fix in v15, where this method still existed.
But it doesn't exist anymore in v16, due to
0e5626ca5126e6fea7fb95b694229948540764d7.

The fix is to use the method specific to the spain edi:
`_l10n_es_edi_sii_post_invoices`

opw-3604907

closes odoo/odoo#144385

X-original-commit: 7df4deacd37e4c34d0b276a087467b41dc4cf14e
Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
Signed-off-by: Arnaud Sibille (arsi) <arsi@odoo.com>
This commit is contained in:
Arnaud Sibille
2023-12-04 11:58:24 +00:00
parent 8037bec6d8
commit bf2b1b1347
@@ -570,7 +570,7 @@ class AccountEdiFormat(models.Model):
"the response. Make sure it is not because of a wrong configuration."))
elif respl.CodigoErrorRegistro == 1117 and not self.env.context.get('error_1117'):
return self.with_context(error_1117=True)._post_invoice_edi(invoices)
return self.with_context(error_1117=True)._l10n_es_edi_sii_post_invoices(invoices)
else: