Skip to content

Commit

Permalink
[IMP] l10n_ar_account_withholding: allow register manually padron arb…
Browse files Browse the repository at this point in the history
…a if the is an error while connecting to arba

Task: 31361
Allow to give the user the opportunity to register manually padron arba not only if arba is down or out of service, also if there is other error type.
  • Loading branch information
pablohmontenegro committed Oct 26, 2023
1 parent 4309d8c commit 9e8e502
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions l10n_ar_account_withholding/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ def get_arba_data(self, partner, from_date, to_date):
msg = "%s\n Error %s: %s" % (ws.MensajeError, ws.TipoError, ws.CodigoError)
_logger.error('Padron ARBA: %s' % msg)
else:
self._process_message_error(ws)

error = True
msg = (_('Padron ARBA: %s - %s (%s)') % (ws.CodigoError, message, ws.TipoError))
_logger.error('Padron ARBA: %s' % msg)
if error:
action = self.env.ref('l10n_ar_account_withholding.act_company_jurisdiction_padron')
raise RedirectWarning(_(
Expand Down

0 comments on commit 9e8e502

Please sign in to comment.