Distribuções Ribeira, the thread of the case
Example Illustrative case: the company and its figures are made up to explain the flow.
Distribuções Ribeira is an invented company that invoices in Portugal from Odoo 18 and runs a second company in the same database. Marta, who heads its admin team, has to get Portugal SAF-T (PT) File Checks ready. The case has no figures: what matters is which screens she opens, which fields she checks and which states she comes across.
The module is published on Odoo Apps for 17.0, 18.0, 19.0 and 20.0, so Marta picks the listing for her version. It costs €9 per Odoo version, excluding VAT, on all four versions, and because it comes with a FlexigoTech Cloud local service there is also a subscription of €29/month or €290/year excluding VAT (Pro: €58/month or €580/year). The subscription comes with a free trial, no card required.
Day one: the company's SAF-T settings
In Invoicing › SAF-T Accounting › Settings, Marta opens the SAF-T settings, which are kept per company. The form has two blocks: Company Information, with the NIF (taken from the company's tax ID, not typed by hand) and the taxonomy reference, which comes set to S - SNC base; and Email & Notifications, with the email confirmations of each delivery.
With two companies, Marta checks that each one has its Portuguese NIF: without a valid Portuguese NIF, the module does not generate that company's file. Then she clicks Test Email to see that the email confirmation goes out.
The fields Marta looks at closely
Before generating anything, Marta goes over the module fields that affect her. These are the ones she identifies:
company_id: appears in several of the module's models as a link tores.company. With two companies in the same database, Marta checks which company each record belongs to.export_file_csv: an attachment (ir.attachment) described asExported CSV format.transaction_count, labelledJournal entries: the number of journal entries included in the SAF-T.name, labelledRequest ID.submission_id: a link tosaft.submission, described asRelated SAF-T submission if applicable.
Marta gives these fields no more purpose than their name or description states. If you need to know how they fit together internally, it is covered in how the module works under the bonnet.
The states each record can have
On day two, Marta learns the state values the module defines. There are four separate sets, and it pays not to mix them up:
- A
statefield withDraft,ExportedandSubmitted. - A
statusfield withDraft,Processing,ApprovedandDenied. - A
statefield withDraft,Generated,Validated,Validation FailedandDelivered. These are the ones shown in theGenerate SAF-T Fileslist; in the screenshots, taken with the previous version of the module, the last one still shows asSubmitted. - A
statefield withTo deliver,Delivered,Accepted by the ATandRejected by the AT. These belong to deliveries: you deliver the file to the AT yourself, and the module records the receipt and whether the AT accepts or rejects it.
From this list, Marta notes the values she wants to keep an eye on every day: Validation Failed, Denied and Rejected by the AT. She does not assume the cause of any of them; when one appears, she looks up the exact wording in the guide to the module's error messages.
The first week: what she checks each morning
With the configuration done, during the first week Marta opens the same screens in the same order every morning. The round looks like this:

Draft, Generated, Validated, Validation Failed and Submitted, with file size and transactions at zero.- In
Invoicing › Annual SAF-T Statisticsshe looks at theCompany,Year,Total Documents,Total ValueandStatecolumns, and checks that each row belongs to the company she expects. - In
SAF-T Error Logsshe reads the date, error type, severity and message of each record, and notes which ones still have the resolved box unticked. - In
Generate SAF-T Filesshe reviews the state of each period, from start to end, alongside file size and transactions.
In her database, with two companies, the Company column is the first thing Marta looks at. The same list has a New button and a search bar:

What the Ribeira case teaches
- SAF-T settings are per company: the NIF comes from the company's tax ID, and
Test Emaillets you check the email confirmation before the first delivery. company_idsits in several models. If you run more than one company, check the company on each record before anything else.- There are four different sets of states. Learn which list shows each one and which values you want to watch.
- The three lists in the round (annual statistics, error logs and file generation) are Marta's routine in her first week.
How FlexigoTech can help
FlexigoTech implements Odoo 17, 18, 19 and 20 and builds bespoke connectors and integrations, so we can set up the SAF-T settings and your companies with you. If you buy the module on its flexigotech.com page, the subscription includes the module for new Odoo versions; on the Odoo App Store, by contrast, each version is bought there (Odoo Apps listing). Without a subscription, or with the service suspended, whatever the subscription provides stops, and your data stays in your Odoo. If you are still unsure whether it fits, first read what it covers and what you need before installing it.
Keep reading
More related guides
Checked in the module's source code (version 20.0) and the linked sources
Sources
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_annual_statistics.py
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_config.py
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_dsar_request.py
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_error_log.py
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_exporter.py
- Module source code: flexigo_portugal_saf_t_accounting_atcud_submission_tool 20.0 (6935c20f): models/saft_submission.py
- apps.odoo.com/apps/modules/20.0/flexigo_portugal_saf_t_accounting_atcud_submission_tool
- apps.odoo.com/apps/modules/17.0/flexigo_portugal_saf_t_accounting_atcud_submission_tool
- apps.odoo.com/apps/modules/18.0/flexigo_portugal_saf_t_accounting_atcud_submission_tool
- apps.odoo.com/apps/modules/19.0/flexigo_portugal_saf_t_accounting_atcud_submission_tool
- flexigotech.com/en/services.html
- flexigotech.com/precios.html
