[FIX] l10n_es_edi_sii: do not change the success

Before, the 'success' key was removed from the results
of the invoice processing and as such the invoice
was never put as successfully sent, but you sent it
again and again.

closes odoo/odoo#81911

X-original-commit: 853ff30b76a56bcb9af88256aac3a3ceb93bf562
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Josse Colpaert <jco@odoo.com>
This commit is contained in:
Josse Colpaert
2021-12-26 19:30:13 +00:00
parent fec1caf25d
commit 33dfee605e
@@ -666,5 +666,5 @@ class AccountEdiFormat(models.Model):
'res_model': inv._name,
'res_id': inv.id,
})
res[inv] = {'attachment': attachment}
res[inv]['attachment'] = attachment
return res