Skip to main content
Portugal · SAF-T (PT)

Accounting and invoicing SAF-T in Portugal: what each file holds and when it is due

In Portugal, SAF-T refers to two different files. The invoicing one carries the documents issued and is used to report the month's invoices to the Tax Authority (AT). The accounting one carries the chart of accounts, balances and journal entries, and will have to be filed with the AT before the IES annual return. Both use the same structure, SAF-T (PT) 1.04_01, with a field that says which of the two it is.

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

Key facts

Versions
Odoo 17, 18, 19 and 20
Checked
against the sources linked at the end
Reading time
4 min

The common structure

Portaria 302/2016 of 2 December amends the data structure defined by Portaria 321-A/2007 and has applied since 1 July 2017. The AT's official schema is version 1.04_01. In the file, the TaxAccountingBasis field tells the invoicing file ("F") from the accounting one ("C"), among other values.

The deadlines in force

  1. 5th of each month Reporting to the AT of the invoices issued the month before (Decree-Law 198/2012, article 3(2), as worded by Law 12/2022)
  2. Financial year 2027 First period for which the accounting SAF-T is required (Law 73-A/2025, article 95(2))
  3. 30 April or 15 June 2028 That first accounting SAF-T is filed with the AT, depending on the case, before the IES and by a certified accountant (Portaria 31/2019, articles 2 and 3); late filing opens an administrative offence procedure

The State Budget proposal for 2027 (article 77(2)), approved in general on 28 October 2026 and not yet through its final overall vote, would postpone the accounting SAF-T by one year: financial year 2028, filed in 2029. It only counts once published in the Diário da República.

The invoicing file in Odoo

If you invoice in Odoo with the CIUS-PT & ATCUD module, each month has its record in "SAF-T Filings": the "Generate SAF-T" button builds the 1.04_01 invoicing file with the month's Portuguese invoices and their ATCUD, and validates it against the official XSD when the Python package xmlschema is installed. Without it, the record says "Not validated: xmlschema is not installed". You upload the file to the Portal das Finanças yourself and then record the receipt with "Record portal upload". If you issue in a certified program, you use the invoicing SAF-T that program exports. The AT certification of CIUS-PT & ATCUD is in progress. Until the AT gives its number, documents carry certificate 0, and a business that invoices under Portuguese rules with invoicing software cannot use it yet to issue its legal invoices (what the law requires).

Monthly invoicing SAF-T record of the CIUS-PT & ATCUD module in Odoo, validated against the official XSD
The month's record in CIUS-PT & ATCUD: the button that generates the file, the check against the official XSD and the portal receipt, which you record by hand (test data).

The accounting file in Odoo

Odoo 17 to 20 ship no SAF-T (PT). The SAF-T PT Checks module generates the accounting SAF-T (PT) 1.04_01 for a period, with the chart of accounts, balances and journal entries, and checks it against the official schema it downloads from the AT. That schema is XSD 1.1, which the lxml library cannot load; the module checks the structure, tests the schema's assertions in Python and, if xmlschema is installed, validates the file against the untouched schema. Errors go to a log of their own.

List of accounting SAF-T files in SAF-T PT Checks in Odoo, with period and state
In SAF-T PT Checks, each accounting SAF-T is a record per period, with its state (test data).

The accounting SAF-T is uploaded on the Portal das Finanças, always by a certified accountant. So the module sends nothing. It records what was done on the portal, with "Record delivery to the AT", "Mark as delivered" and "Accepted by the AT" or "Rejected by the AT".

Each module costs €9 per Odoo version on Odoo Apps, plus the FlexigoTech Cloud subscription, Standard at €29 a month or €290 a year, VAT excluded, with a 14-day trial and no card. CIUS-PT & ATCUD needs it to issue documents, because each one is signed in the service. SAF-T PT Checks works without it; the subscription adds monitoring of the official sources, with alerts. SAF-T PT Checks has 70 automated tests on version 19.0. More on the SAF-T PT Checks page.

Is the accounting SAF-T mandatory already?

Under the law in force on 17 November 2026, it applies to the 2027 financial year. It is filed with the AT in 2028, before the IES, by 30 April or 15 June depending on the case.

Is the invoicing SAF-T the same as the monthly invoice reporting?

It is one of the three routes in article 3(1) of Decree-Law 198/2012: real-time transmission, sending the SAF-T (PT) file, or typing the data straight into the Portal das Finanças, always by the 5th of the following month. With the CIUS-PT & ATCUD module, the month's file comes from the "Generate SAF-T" button and you upload it to the Portal das Finanças yourself.

Keep reading

Invoicing in Portugal with Odoo: what the law requires and what Odoo is missingWhat Portuguese law requires from businesses invoicing with Odoo, with the laws and dates in force on 17-11-2026, what Odoo ships and what the modules cover.The ATCUD code, explained with an Odoo invoiceThe ATCUD is the series validation code, a hyphen and the document's sequential number. How the series is registered with the AT and what Odoo does with it.CIUS-PT: the XML Portuguese public bodies accept, from an Odoo invoiceWhat CIUS-PT 2.1.1 is, who must invoice public bodies with it, some of the rules the module meets and how Odoo generates the XML with ATCUD and QR.
Checked against the linked sources

Sources