Uruguay CFE Electronic Invoicing - Facturacion Electronica Uruguay DGI, e-Factura, e-Ticket
by Modvanta https://modvantaapps.tech$ 68.79

Issue Uruguay CFE from your Odoo invoices: e-Ticket, e-Factura and e-Factura Exportacion with their credit and debit notes, signed in Odoo with your certificate and sent to the DGI web service in a sobre.
The module picks the CFE type from the customer, takes the next number from your CAE, checks the XML against the DGI schema before anything leaves Odoo, and prints the CFE with its QR and security code.
Please read: not yet tested against the live DGI service
Built from the public DGI documents: Formato de los CFE v25.2, Formato del Sobre v05, Formato de Reporte Diario v13.2, Formato de mensajes de respuesta v19, Servicios Web Externos DGI and the XSD bundle 1.44.2.
Calls to the DGI were tested against a local simulator shaped like those documents, not against the DGI. Run your homologation tests with your own certificate and CAE before you issue real CFE.
Who it is for
Companies in Uruguay that issue CFE directly to the DGI with their own electronic certificate and run Odoo 19, and the Odoo partners who set it up for them. You do not need a third-party CFE provider.
Key features
CFE status on the invoice list
Each customer invoice and credit note shows where its CFE stands: to send, sent and waiting for the DGI, accepted, rejected or a connection problem. A filter lists everything not accepted yet.

Type, number, CAE and hash on the invoice
The Uruguay CFE tab shows the CFE type, serie and number, the CAE used, the signing time, the security code, the signed XML and every call to the DGI with its answer (AS/BS for the sobre, AE/BE for the CFE).

Printed e-Factura with QR and security code
The printed CFE follows the DGI layout: RUC COMPRADOR box, IVA by rate, the QR linking to the DGI query page, the first 6 characters of the hash as codigo de seguridad, the CAE number, its range and the expiry box.

e-Ticket for final consumers
Sales to people without RUT go out as e-Ticket with the CONSUMO FINAL box. Above the limit you set, the buyer document (CI, passport, DNI) becomes required.

e-Factura Exportacion in any currency
Customers abroad get an e-Factura Exportacion with the incoterm as clausula de venta, sale mode and transport, the exchange rate and the export amount.

Credit and debit notes that point to the original
A credit note from an e-Factura becomes type 112 with a reference to the original serie and number; notes from an e-Ticket stay in the e-Ticket family. Debit notes work the same way.

CAE ranges with a low-number warning
Load each CAE the DGI gives you: type, serie, first and last number, expiry. Numbers are taken under a row lock, expired CAE are skipped, overlapping ranges are refused, and the list turns orange when few numbers are left.

Reporte diario
The daily report is built from the numbers used that day, signed, checked against the schema and sent. A scheduled job sends yesterday's report; a correction goes again with the next SecEnvio.

Register of every number used
Each CFE number is kept with its totals in pesos. Numbers of CFE the DGI rejected are marked void and reported as anulados.

Settings in Accounting
Simulation, DGI test or production, the web service addresses, the certificate and the signature algorithm, the texts printed on the CFE and the e-Ticket limit.

How it works
- Install the module on a company with the Uruguay chart of accounts (l10n_uy).
- In Accounting settings choose Simulation first, then DGI test with your certificate, then production.
- Load your CAE ranges and tick Uruguay CFE on the sales journal, with the DGI branch code.
- Post an invoice and press Send CFE to DGI, or turn on automatic sending and let the scheduled job do it.
- The module signs the CFE, wraps it in a sobre, sends it, reads the token from the answer and asks the DGI for the CFE status.
- Print or email the invoice: the customer gets the printed CFE and the signed XML.
Settings
- Mode: Simulation (local, no fiscal value), DGI test environment or DGI production.
- Web service addresses for test and production (https only).
- Certificate (PKCS#12 stored by the Odoo certificate module) and signature algorithm RSA-SHA256 or RSA-SHA1.
- Emisor date or resolution, web page printed on e-Tickets, e-Ticket limit for the buyer ID, IVA al dia line.
- Per sales journal: Uruguay CFE on or off, DGI branch code and branch name.
- Per tax: the indicador de facturacion when the rate alone is not enough (exento, IVA en suspenso, impuesto percibido, no facturable).
What was tested
- 57 automated tests: every CFE type of this module, mixed IVA rates, discounts and tax-included prices, USD exports, notes, CAE exhaustion and expiry, rejections, retries, the daily report, the printed CFE, the supplier import and access rights.
- Each CFE, sobre and daily report is validated against the DGI XSD 1.44.2 and its signature is verified in the tests.
- The SOAP request carries a WS-Security signature over the body, checked in the tests.
What is not included
- e-Remito, e-Resguardo, e-Boleta de entrada and the cuenta ajena types.
- Contingency (CFC 2xx) paper documents.
- Point of Sale tickets.
- Your certificate and your CAE: you get them from the DGI and Correo Uruguayo.
FAQ
Do I need a CFE provider?
No. Odoo signs with your certificate and talks to the DGI web service directly.
Can I try it without a certificate?
Yes. Simulation runs the whole flow locally with a throwaway key; those CFE have no fiscal value.
What happens when the DGI is down?
The CFE keeps its number and signature and goes back to the queue; the next try sends the same document.
What if the DGI rejects a CFE?
You see the motive (for example E04 or S03). Fix the cause and press Issue again with a new number; the rejected number stays void for the daily report.
Can I load CFE from my suppliers?
Yes. Import supplier CFE reads a single CFE or a sobre and creates draft vendor bills with the XML attached and the signature checked.
En espanol
Emita CFE desde Odoo: e-Ticket, e-Factura y e-Factura Exportacion con sus notas de credito y debito, firmados con su certificado y enviados en un sobre al servicio web de la DGI.
Incluye rangos de CAE con aviso de numeros bajos, reporte diario, representacion impresa con QR y codigo de seguridad, e importacion de CFE de proveedores. Pruebe en homologacion con su certificado antes de emitir CFE reales.
Compatibility
Odoo 19 Community and Enterprise. Depends on Uruguay accounting (l10n_uy), debit notes and the certificate module, all part of Odoo.
Support
Write to modvantaapps@gmail.com.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) • Contacts (contacts) |
| Lines of code | 1914 |
| Technical Name |
mdv_uy_cfe |
| License | OPL-1 |
| Website | https://modvantaapps.tech |
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