Skip to content
Snippets Groups Projects
Commit 925fc0ff authored by dbkosky's avatar dbkosky Committed by dbkosky
Browse files

[FIX] l10n_it_edi_sdicoop: fix bug where retry after notificaScarto does nothing

Set the l10n_it_edi_transaction value on the invoice to false after
receiving notificaScarto from the edi. This is so that the methods
associated with posting the invoice will detect it again and process it
for posting.

Task-id: 2764978
Part-of: odoo/odoo#84724
parent 32683b70
Branches
Tags
No related merge requests found
......@@ -229,6 +229,7 @@ class AccountEdiFormat(models.Model):
elif state == 'notificaScarto':
errors = [element.find('Descrizione').text for element in response_tree.xpath('//Errore')]
to_return[invoice] = {'error': self._format_error_message(_('The invoice has been refused by the Exchange System'), errors), 'blocking_level': 'error'}
invoice.l10n_it_edi_transaction = False
elif state == 'notificaMancataConsegna':
to_return[invoice] = {
'error': _('The E-invoice is not delivered to the addressee. The Exchange System is\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment