El Salvador DTE Electronic Invoicing - Facturacion Electronica El Salvador, Ministerio de Hacienda
by Modvanta https://modvantaapps.tech/odoo-apps/sv-dte/$ 22.93

El Salvador DTE Electronic Invoicing for Odoo 19
Factura, Comprobante de Credito Fiscal, notes, export and sujeto excluido invoices as signed DTE JSON, sent to the Ministerio de Hacienda with sello de recepcion, invalidation and contingency.
What it does
When an invoice is validated the module builds the DTE JSON exactly as the official Ministerio de Hacienda schemas define it, signs it (JWS RS512) with the certificate file the MH issued to you - inside Odoo, no firmador server needed - and sends it to the recepciondte service. The sello de recepcion, the processing date and any MH observations are stored on the invoice.
Each type gets its numero de control (DTE-01-M001P001-000000000000001) per establishment and point of sale, and a codigo de generacion. The Archivo DTE (JSON with firmaElectronica and selloRecibido) goes to your customer with the PDF, and the printed invoice carries the QR of the public MH query.
Wrong documents are invalidated with the Evento de invalidacion; when the MH or your connection is down, contingency mode keeps signing and later reports everything with the Evento de contingencia.
Who it is for
| Companies in El Salvador that must issue DTE (grandes, medianos and voluntary issuers). | |
| Exporters issuing the Factura de exportacion and companies buying from sujetos excluidos. | |
| Accountants who need the numero de control, codigo de generacion, sello and a log of every MH call. |
Key features
| 1 | DTE type and MH status on every invoiceThe invoice list shows the DTE type and the MH status: to send, received, received with observations, rejected, signed in contingency, invalidated. |

| 2 | Sello de recepcion on the invoiceThe DTE tab keeps the numero de control, codigo de generacion, issue time, sello de recepcion, MH message and the Archivo DTE. Transmitted documents are locked. |

| 3 | Printed DTE with QRThe PDF shows the DTE type, numero de control, codigo de generacion, sello, date and time, billing model and the QR of the MH public query. |

| 4 | Notas de credito y debitoNotes are created from the Comprobante de credito fiscal they amend; the related document goes into documentoRelacionado and every line. |

| 5 | Factura de exportacionForeign customers get type 11 with country, person type, incoterm and 0% IVA (C3). |

| 6 | Factura de sujeto excluidoVendor bills from suppliers flagged as sujeto excluido become type 14 with the income tax withheld. |

| 7 | Evento de invalidacionInvalidate a received DTE with the CAT-024 reason, the replacement DTE when there was an error, the responsible person and the requester. The invoice is cancelled when the MH accepts. |

| 8 | ContingencySwitch on contingency mode: DTE are signed with tipoModelo 2 and kept. Close the contingency to send the Evento de contingencia, then all documents are transmitted. |

| 9 | SettingsEnvironment (demo, MH test, MH production), API user, signature inside Odoo or through the MH firmador, issuer NRC, activity and address, establishment and point of sale codes. |

| 10 | DTE logEvery authentication, recepciondte, consultadte, anulardte and contingency call with its answer. |

How it works
| 1 | Install the module. Departments, the 44 municipalities, the 262 districts and the economic activities (CAT-019) are loaded for you. |
| 2 | In Settings enter the NRC, activity and address of your company, upload the MH certificate file (.crt) with its password and start in demo or MH test mode. |
| 3 | Set NIT or DUI, NRC, activity and address on your customers; mark the IVA 13%, exempt and export taxes. |
| 4 | Validate an invoice: the DTE type is chosen for you (Factura, CCF, export) and the DTE is signed and sent. |
| 5 | Switch to MH production with your API user when the MH authorizes you as an issuer. |
Settings
| MH Environment | Demo (offline simulation), MH test (ambiente 00) or MH production (ambiente 01). |
| MH API User / Password | Credentials of the MH transmission API (seguridad/auth). The token is kept for the day. |
| Signing | Inside Odoo with the MH certificate file, or through the MH firmador service URL. |
| Issuer | NRC, economic activity, municipality and district of the company. |
| Establishment and point of sale | Type and numbers used in the numero de control, MH codes used in the events. |
| Send to MH on Validate | Automatic sending when an invoice is validated. |
| Contingency mode | Type (CAT-005) and reason; DTE are signed and kept until the contingency event is sent. |
FAQ
Do I need the MH firmador?
No. The module signs inside Odoo with the certificate file the MH issues. If you already run the firmador you can point the module to it.
Which document types are included?
Factura (01), Comprobante de credito fiscal (03), Nota de credito (05), Nota de debito (06), Factura de exportacion (11) and Factura de sujeto excluido (14), plus the invalidation and contingency events.
Can I try it without MH credentials?
Yes. Demo mode builds and signs every document and simulates the MH answers locally.
Does it follow the current schemas?
Every DTE is built to the official JSON schemas published by the Ministerio de Hacienda (Normativa V2.0), including the department, municipality and district address.
Compatibility
Odoo 19 Community and Enterprise. Depends on Invoicing and debit notes; works with any chart of accounts. Spanish translation included.
Buy Now - $23
Support: modvantaapps@gmail.com - questions, setup help and bug reports, answered by the Modvanta team.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1713 |
| Technical Name |
mdv_sv_dte |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/sv-dte/ |
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