Your electronic invoices exist in two places: in the SPV, at ANAF, and in Odoo, attached to each invoice.
What you usually do not have is the archive — the files gathered in one place, by period, in a form that can be handed to somebody.
The retention obligation is ten years. Ten years during which you are relying on the SPV staying accessible in its current form, on nobody doing an attachment clean-up in the database, and on somebody still being around in seven years who knows where to download from.
The l10n_ro_edi_download_archive module solves the missing part: a wizard that packs the period into a ZIP.
1. What goes into the archive
Every e-Factura XML file attached to the posted invoices of a chosen interval.
With one important restriction: only invoices that actually went through the SPV are included, that is, the ones carrying the upload index. An invoice posted in Odoo but never sent does not slip into the archive as if it had been filed.
It sounds like an implementation detail. It is not. An archive containing undeclared documents is worse than an incomplete one, because it gives the impression that everything is in order.
2. Outgoing or incoming
You pick the direction before exporting:
- outgoing — invoices, credit notes and receipts to customers;
- incoming — invoices, credit notes and receipts from suppliers.
They are two different archives, with different purposes. The outgoing ones prove what you filed; the incoming ones are the documents on the basis of which you deducted.
3. The form closest to the original
When the SPV returns a signed ZIP, that is what goes into the archive. When there is none, the raw XML goes in.
That order matters because the signature is what makes the document enforceable. An XML without it is the content, not the proof.
4. Per company
In a database with several companies, the wizard exposes the company selector, and every legal entity produces its own archive.
That is the legal requirement, not a convenience: the retention obligation belongs to each company separately, and a shared archive for three entities serves none of them.
5. File names that still read in three years
Every archive is named after the company, tax code and interval.
In a folder with forty ZIPs, somebody who was not here when they were made has to be able to pick the right one without unzipping them in turn. That is all "auditable" means in practice.
By default, the period proposed is last month — that is, the rhythm at which archiving happens, if it happens.
What to check the first time
- A month with outgoing and incoming invoices, exported separately. Does the number of files in each archive match the number of invoices sent through the SPV in that period?
- A posted but unsent invoice, deliberately. It must not appear.
- A credit note, to confirm it goes in too, not just ordinary invoices.
- The content of one file in the archive: is it the signed ZIP or the raw XML? If they are all raw, check whether the SPV really returns ZIPs and whether they are being saved.
- The second company, if you have one: its archive contains only its invoices.
Why it is worth it
Because it is the one module in the localization you never use — until the day you use it, and then it is urgent.
Monthly archiving takes two minutes. Reconstructing three years of electronic invoices, with the SPV changed in the meantime and half the attachments deleted during a migration, takes weeks — and usually does not finish.
The module is on Odoo Apps, for Odoo 19 and 20: Romania - Accounting Archive.
If you have no local e-Factura archive and you are relying on the SPV, let's talk.