| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1726 |
| Technical Name |
l10n_pt_saft_gb |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1726 |
| Technical Name |
l10n_pt_saft_gb |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
Portugal SAF-T (PT) 1.04_01
Monthly billing & annual accounting audit file for the Autoridade Tributaria — ATCUD and document hash chain on every invoice
Generate the Portuguese Standard Audit File for Tax purposes in the published AT schema 1.04_01. Produce the billing file with ATCUD and the signed hash chain, the accounting file mapped onto the SNC chart, or a single integrated file — validated before it leaves Odoo. Ready for the SAF-T accounting mandate (2028, FY2026).
Billing, accounting or integrated
Choose the TaxAccountingBasis: F emits the SourceDocuments / SalesInvoices block, C emits the GeneralLedgerEntries block over the SNC chart, and I emits both in one file. The selection period drives every block.
ATCUD on every document
Each customer invoice and credit note carries its ATCUD — the AT series validation code joined to the document sequence — built from the validation code you hold on the journal. The placeholder is used until the series is registered.
Real document hash chain
Every posted document is sealed with a chained signature over the canonical AT payload (InvoiceDate;SystemEntryDate;InvoiceNo;GrossTotal;PreviousHash), RSA/SHA-1 with your own AT-registered private key. The printed 4-character hash control is extracted at positions 1/11/21/31.
NIF / NIPC validation
The modulo-11 control-digit algorithm with the AT taxpayer-class prefixes runs on the company and on every partner. Anonymous retail customers collapse to the official 999999990 "Consumidor final" marker.
AT TaxCode matrix
NOR / INT / RED / ISE / OUT are mapped from the numeric VAT rate per region — Continente, Acores and Madeira each carry their own rate table — with exemption-reason codes on every exempt line.
Validated before you file
A pre-export validator reproduces the common AT rejection reasons: an invalid NIF, a non-standard TaxCode, a missing ATCUD or Hash, a broken hash chain, mismatched document totals and an unbalanced ledger — each reported in a readable list.
Bring your own credentials
This module produces a file for you to submit to the AT yourself. It does not transmit any data anywhere. Your signing private key is stored solely in your own database and is never sent anywhere else. Compatible with Odoo 18 and Odoo 19.
Screenshots
Portugal Saf T Pt Billing Ex
Posted Portuguese Customer I
Source Documents Posted Port
Saf T Pt Onboarding Wizard N
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module