Skip to main content
VeriFactu

Retry Selected in VeriFactu España: what the button does, step by step

The Retry Selected button moves the selected records that are Failed or Dead Letter back to Pending, and skips the rest without an error. According to the Odoo 20 code, only a SIF Manager can run it. This checklist covers what to look at before pressing it, what changes when you do and what to check afterwards.

FlexigoTech · Editor in charge: Víctor Gómez · Updated 5 November 2026

Key facts

Module
VeriFactu
Versions
Odoo 17, 18, 19 and 20
Checked
in the module's source code, version 20.0 · against the sources linked at the end
Reading time
4 min

What follows describes the button according to the Odoo 20 code. The Retry Selected button is on the AEAT Errors screen in the 17, 18, 19 and 20 branches of the module, and it has no view condition: it is always shown. The module is published on Odoo Apps for those same versions: 17, 18, 19 and 20.

Before you press: permissions, menu and states

  • Check that your user is a SIF Manager. This is the permission the module requires when you press the button, and the server enforces it, not just the screen. The button being visible does not prove you can use it: the permission is checked when you press.
  • Find the queue. The queue records open from Verifactu / SIF › AEAT Submission › Submission Queue. The AEAT Submission level is visible to Accountant, Auditor (read-only) and SIF Manager. The Verifactu / SIF level is also visible to Asesoría Operator and Privacy Officer. Seeing the menu is not the same as being able to retry: that takes the SIF Manager role.
  • Look at the Estado field. It appears on the form and in the list of AEAT Errors. Its values are Pending, Retrying, Submitted, Failed and Dead Letter. Note the state of each record before you touch anything.
  • Select the records you want to reset. The button acts on the whole selection in bulk. The ones it changes are those in Failed or Dead Letter; what happens to the rest is covered below.
Code-generated diagram: the submission queue menu, the Retry Selected button and the message that can stop it
Diagram generated from the published module code, not an Odoo screenshot: from the queue menu to the retry button, with the message that can stop it.

When you press: what the button does, in code order

  • First it checks the permission. If you are not a SIF Manager, the action stops with the message Only a SIF Manager can retry AEAT submissions. and nothing the action was about to change is saved. The check is skipped when the action runs with superuser privileges.
  • Then it filters the selection. It keeps the records whose Estado is Failed or Dead Letter.
  • Those records get three changes at once. Estado becomes Pending, the attempts counter goes back to zero and the next-retry date is cleared. The change is written with elevated privileges, once the permission check has passed.
  • The others are skipped without an error. Records in Pending, Retrying or Submitted are left alone and do not make the action fail: they are only counted for the final notice.

After you press: the notice and what to check

  • Read the notice titled Retry Selected. It says … item(s) reset to pending for retry. If any records were skipped, it adds … item(s) skipped (not in failed/dead-letter state). The dots stand for the number the notice shows.
  • Look at the type of notice. It is a success notice if at least one record was reset and a warning if none was. It does not stay fixed on screen.
  • Go back to the list and review Estado. The reset records should be Pending; the skipped ones keep the state they had before you pressed.
List of the submission queue filtered by pending, with no records
The submission queue list filtered by pending, still with no records.
  • If the notice is a warning and everything was skipped, nothing has changed: no record in the selection was Failed or Dead Letter. Review the selection and try again.

If something does not go as expected

  • You get Only a SIF Manager can retry AEAT submissions. Your user is not a SIF Manager. Ask someone with that role to press the button with the same selection.
  • A record has not changed state. Check its Estado from before: if it was Pending, Retrying or Submitted, the button skips it by design and counts it in the skipped notice.
  • You selected many records at once. That is fine: the action is built to work on several records in one press, and the ones that do not qualify are skipped without stopping the rest.

How FlexigoTech can help

FlexigoTech implements Odoo 17, 18, 19 and 20 and builds custom connectors and integrations. If you are setting up VeriFactu and want to review another button in the same app, see What the Ejecutar Comprobación Previa button does.

Keep reading

What the Run Pre-flight button in VeriFactu España doesWhat the Run Pre-flight button in VeriFactu España for Odoo does: when it shows, what it checks on each row, what it saves and which errors stop it.
Checked in the module's source code (version 20.0) and the linked sources

Sources