NextERP Documentation
ROEN

e-Factura, e-Transport and SPV · Article 07

The e-Factura and e-Transport archive

Applies to Odoo 19 · 20

The XML files exchanged with ANAF through SPV (Spațiul Privat Virtual, the taxpayer's private online space at ANAF) — invoices sent, invoices received from suppliers and e-Transport declarations — must be kept. Odoo collects them in a ZIP archive: on demand, for any period, or automatically, every month, from the returns schedule.

When to use

  • Monthly, to keep the original files of the electronic invoices (e-Factura, the Romanian national e-invoicing system).
  • The auditor or a tax inspection asks for the electronic invoices of a period.
  • You want all invoices received from suppliers in a month, in XML format.

Before you start

  • The invoices are confirmed and have gone through SPV: they have an ANAF upload index. Invoices that were not sent to or retrieved from SPV are not included in the archive. See Sending invoices to e-Factura and Receiving vendor bills.
  • For the automatic archive from the schedule, the company has an active NextERP subscription; the manual export does not require it.

Steps in Odoo

1. Open the export

Accounting › Accounting › Romania › EDI - Export Zip.

2. Choose the invoice type

In Inv Type, choose Sale for issued invoices (including credit notes) or Purchase for invoices received from suppliers.

3. Choose the period

Fill in the start and end dates; by default it is the previous month.

4. Export

Click Export. The archive appears in the same window; click it to download it and keep it with the ".zip" extension.

What it contains

One file for each invoice, named after the partner's tax code, the invoice number and date, so the archive can be read without Odoo. The ZIP file received from ANAF (with the invoice and the signature) is preferred; if it is missing, the invoice's XML file. The archive name contains the company, the tax code and the period.

Variants

The automatic monthly archive, from the returns schedule

When proposing the list of returns from the fiscal profile (ANAF Declarations › Configuration › General › Declarations and Registers, Propose from Fiscal Profile button), Odoo adds once a line of type Archive, monthly, optional, due on the 25th of the following month. Confirm it with Confirm; in Archive Type choose e-Factura and e-Transport, e-Factura or e-Transport.

After the month ends, Odoo creates the archive on the record in ANAF Declarations › Schedule and keeps it attached; the Generate Report button rebuilds it. The archive has the folders "e-Factura/emise" (issued), "e-Factura/primite" (received) and "e-Transport", with one file per invoice or per transport (the date, the number, the tax code or the UIT code).

Common mistakes

  • The archive is empty. The period's invoices have not gone through SPV or are in draft. Send them or retrieve them from SPV and export again.
  • A received invoice is missing. The vendor bill was entered manually, not retrieved from SPV, so it has no ANAF index.
  • Exporting the whole year takes long. Export month by month or use the automatic archive from the schedule.
For the accountant: legal framework

The electronic invoice in XML format, with the Ministry of Finance signature, is the original invoice document in the RO e-Factura system; the PDF is only a representation of it. Supporting documents are kept for 10 years (Legea contabilității 82/1991, the Romanian Accounting Law, art. 25). Files downloaded from SPV remain available there only for a limited period, so monthly archiving outside SPV is recommended.

Documentation by the NextERP team.