[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 X-original-commit: 925fc0ff3914e83ddaac4fd5f6c1bdb7b4b2c68b Part-of: odoo/odoo#84826
This commit is contained in:
@@ -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\
|
||||
|
||||
Reference in New Issue
Block a user