From bf2b1b1347a73b491556cf85e85cb51659dc04a1 Mon Sep 17 00:00:00 2001 From: Arnaud Sibille Date: Thu, 23 Nov 2023 11:13:17 +0100 Subject: [PATCH] [FIX] l10n_es_edi_sii: remove call to _post_invoice_edi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) Signed-off-by: Arnaud Sibille (arsi) --- addons/l10n_es_edi_sii/models/account_edi_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_es_edi_sii/models/account_edi_format.py b/addons/l10n_es_edi_sii/models/account_edi_format.py index b196c0ce2f5..277a2e6a469 100644 --- a/addons/l10n_es_edi_sii/models/account_edi_format.py +++ b/addons/l10n_es_edi_sii/models/account_edi_format.py @@ -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: