Skip to main content
Portugal · invoicing hub

Invoicing in Portugal with Odoo: what the law requires and what Odoo is missing

For Portugal, Odoo ships the chart of accounts and the VAT return (l10n_pt), but no ATCUD, AT QR code, signature, SAF-T (PT) or CIUS-PT XML. This page sets out what Portuguese law requires, with each law's number and the dates in force on 24 November 2026, and what the two FlexigoTech modules do and do not do yet.

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

Key facts

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
8 min

What the law requires, and since when

  1. 1 January 2022 QR code mandatory on invoices and documents issued by certified programs (Portaria 195/2020, article 6; optional in 2021 under Law 75-B/2020, article 404)
  2. 1 January 2023 ATCUD on every invoice and tax-relevant document (Decree-Law 28/2019, article 35; Portaria 195/2020, articles 3 and 4) · what the ATCUD is
  3. Every month Invoices reported to the AT by the 5th of the following month (Decree-Law 198/2012, article 3(2))
  4. 31 December 2026 Last day a PDF counts as an electronic invoice (Law 73-A/2025, article 95(3))
  5. 1 January 2027 Electronic invoices (CIUS-PT) also mandatory for SMEs and micro companies invoicing the public administration (Law 73-A/2025, article 260(2)) · CIUS-PT
  6. Financial year 2027 Accounting SAF-T, filed with the AT by a certified accountant before the IES return, by 30 April or 15 June 2028 depending on the case (Law 73-A/2025, article 95(2); Portaria 31/2019, articles 2 and 3) · the two SAF-T files

The State Budget proposal for 2027 (Proposta de Lei 110/XVII/2.ª, articles 77 and 138), approved in its final overall vote on 24 November 2026 and not yet published in the Diário da República, would postpone by one year the PDF deadline (to 31 December 2027), the accounting SAF-T (financial year 2028, filed in 2029) and the SME public-procurement deadline (to 31 December 2027). These dates only change once the law is published in the Diário da República; until then, the ones above apply.

Certified invoicing program

Under article 4(1) of Decree-Law 28/2019, businesses with a seat, permanent establishment or tax domicile in Portugal, and others that invoice under Portuguese rules through article 35-A of the VAT Code, must invoice only with an AT-certified program whenever any one of three conditions applies: turnover above €50,000 in the previous year, organised accounts, or the use of invoicing software. The AT's FAQ says the conditions are not cumulative, so one is enough. Invoicing in Odoo means using invoicing software, so that software has to be certified. The program requirements are in article 3 of Portaria 363/2010. Since 1 July 2025 the AT has also offered its own invoicing applications, which these businesses may use (article 4-A of the same decree-law).

Issuing: series, ATCUD, signature and QR code

Each document series is registered with the AT before it is used, on the Portal das Finanças or by webservice, with its identifier, document type, first number and planned start date (Portaria 195/2020, article 2). The AT returns a validation code, and the ATCUD joins that code to the document's sequential number: invoice FT 2026A/15 in a series with code ABCD1234 carries ATCUD:ABCD1234-15 (what the ATCUD is).

A certified program signs each invoice when it is saved: RSA signs the document date, the date and time of saving, the number, the gross total and the signature of the previous document of the same series and type. The printed document shows four characters of that signature, those in positions 1, 11, 21 and 31, and the words «Processado por programa certificado n.º…» (Portaria 363/2010, article 6). The QR code follows the AT's technical specifications: Byte mode, with the ATCUD in field H.

Reporting to the AT and invoicing the public sector

Invoice data reaches the AT in one of three ways: real-time electronic transmission, the SAF-T (PT) file, or typing it into the Portal das Finanças, by the 5th of the following month (Decree-Law 198/2012, article 3(1) and (2)). Businesses required to produce the SAF-T (PT) may only use the first two (article 3(3)). In real time, the e-Fatura webservice registers each document (RegisterInvoice) and changes its status, for example on cancellation (ChangeInvoiceStatus), with a Portal das Finanças sub-user (AT integration manual, version 3.0, October 2025).

Public bodies are invoiced in CIUS-PT. For those on eSPap's FE-AP platform, the XML arrives by webservice, signed in XAdES-BES with a qualified certificate or seal, or by AS2 through an operator. Suppliers issuing fewer than 250 documents a year may use the FE-AP Microportal, where the invoice is typed into a form and the digitally signed PDF is attached. eSPap charges nothing for FE-AP or the Microportal until a despacho sets a price (eSPap FAQ, 2.13, 2.22, 4.1 and 4.3). More in CIUS-PT.

Formats

FormatStandardWhat for
SAF-T (PT) 1.04_01Portaria 302/2016, AT schema in XSD 1.1Invoicing (F), reported to the AT, and accounting (C), filed before the IES · the two SAF-T files
CIUS-PT 2.1.1Portaria 289/2019, EN 16931, UBL 2.1 syntaxInvoices to the public sector
QR codePortaria 195/2020 and the AT's technical specificationsPrinted on every invoice and document, ATCUD in field H

When the program is down

If the invoicing program is down, documents pre-printed by authorised printers are issued and later recovered into the program (Decree-Law 28/2019, article 4(4)). In CIUS-PT & ATCUD they are recorded in a recovery series M; documents lost after a backup restore are written again, from their duplicate, in a series D.

Fines

OffenceFineLaw
Invoicing without a certified program€1,500 to €18,750RGIT, article 128(2)
Using invoicing or accounting software that does not meet the requirements€1,500 to €18,750RGIT, article 128(3)
Not reporting invoices to the AT, or reporting them late€200 to €10,000 (serious offence)RGIT, article 117(9)
Not issuing an invoice or receipt, or issuing it late€150 to €3,750RGIT, article 123(1)

The limits double when the fine is imposed on a company or other legal person (RGIT, article 26(4)). Negligence is also punished and, where the law does not distinguish, capped at half the maximum (article 24).

Error codes when reporting to the AT

The e-Fatura webservice answers with a code. Some of the codes in the AT manual, with its wording:

CodeAT messageWith CIUS-PT & ATCUD
0Operação efetuada com sucessoMarked as reported, with the date
-10O documento já foi registado pelo emitenteCounts as reported
-3Documento registado com valores diferentes (registered with different values)Error, with the AT code and message
-16Utilizador não tem permissões… (the user cannot register documents for that NIF)Error: the sub-user needs that permission on the Portal das Finanças
99Erro na validação da senha (wrong password, access suspended)Error: the sub-user password is typed again at the next sending

The modules' own messages are in CIUS-PT & ATCUD errors and SAF-T PT Checks errors.

What the modules cover in Odoo

ModuleWhat forFull price
CIUS-PT & ATCUDATCUD, QR, signature, reporting to the AT, CIUS-PT XML and invoicing SAF-T inside Odoo. AT certification is in progress: documents carry certificate 0 and, until the AT gives a number, the module cannot be used to issue the legal invoices of a business that must use a certified program€9 per version + Standard, €29/month or €290/year + VAT (Pro: €58/month or €580/year), 14-day trial
SAF-T PT ChecksAccounting SAF-T (PT) for a period, checked against the AT's official schema€9 per version + Standard, €29/month or €290/year + VAT (Pro: €58/month or €580/year), 14-day trial
Customer invoice in Odoo with the ATCUD and the AT QR code, issued with the CIUS-PT & ATCUD module
An invoice issued with CIUS-PT & ATCUD: the ATCUD, the AT QR code and the CIUS-PT XML button sit on the Odoo invoice itself (test data).

CIUS-PT & ATCUD numbers each customer document in its series, with ATCUD and QR code: invoices (FT), invoice-receipts (FR), debit (ND) and credit notes (NC) and receipts (RG and RC). It signs invoices and notes when they are issued, with the private key held in FlexigoTech Cloud, and builds the month's invoicing SAF-T (PT) and each invoice's CIUS-PT XML. It reports series and documents to the AT by webservice when the user sends them, with the sub-user, whose password is typed at each sending and never stored, and the AT client SSL certificate loaded on the company; out of the box it points at the AT test environment. It handles withholding tax and checks the signature chain daily. It does not issue simplified invoices (FS), transport documents (GT) or Sales, Inventory or Point of Sale documents, has no training mode, does not import documents from other programs, and does not send the CIUS-PT to FE-AP: the XML leaves Odoo and goes by webservice or through an operator. It needs the FlexigoTech Cloud subscription: without a signature the invoice stays in draft (the trial signs too).

SAF-T PT Checks builds the accounting SAF-T (PT) for a period and validates it against the official schema it downloads from the AT. It does not file it: the accounting SAF-T is filed on the Portal das Finanças and recorded in Odoo as delivered, accepted or rejected. It works without the subscription, which adds monitoring of the module's official sources, with alerts when they change. Until the AT gives CIUS-PT & ATCUD its number, a business that must use a certified program invoices in a program that is already certified or in the AT's applications, and can still generate the accounting SAF-T in Odoo with SAF-T PT Checks.

List of accounting SAF-T files in the SAF-T PT Checks module in Odoo, with period and state
The accounting SAF-T files in SAF-T PT Checks, one per period, each with its state: draft, generated, validated, validation failed or delivered (test data).

Is Odoo a certified invoicing program in Portugal?

Out of the box, Odoo has no ATCUD, AT QR code, signature or SAF-T (PT). Certification belongs to each program; CIUS-PT & ATCUD's is in progress, so documents carry certificate 0.

Which Odoo versions do these modules cover?

Versions 17, 18, 19 and 20, Community and Enterprise, on Odoo.sh or on your own server. They do not work on Odoo Online, which does not allow third-party modules.

Keep reading

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.Accounting and invoicing SAF-T in Portugal: what each file holds and when it is dueThe two SAF-T (PT) files: invoicing reported by the 5th, accounting filed before the IES from financial year 2027. Laws, deadlines and what each Odoo module generates.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 in the module's source code (version 20.0) and the linked sources

Sources