e-Invoice Core Engine
The shared foundation for country e-invoicing connectors
A jurisdiction-agnostic toolkit that powers UBL 2.1 and canonical JSON generation, cryptographic sealing, QR codes, validation and secure transport. Install it once; your country connector modules plug straight in. Compatible with Odoo 18 and Odoo 19.
What is inside
UBL 2.1 Builder
Invoice and credit note documents with supplier/customer party blocks, invoice lines with allowances and charges, tax subtotal aggregation, monetary totals, payment means and terms, and base64 attachment embedding.
Canonical JSON Builder
Ordered-key serialization with configurable per-field decimal precision and a whitespace-free canonical string ready for signing in JSON-regime jurisdictions.
Signing (BYOK)
Enveloped XML-DSig with SHA-256 digests and exclusive C14N, plus a detached JWS variant for JSON regimes. Your certificate and key stay in your database and never leave it.
QR Engine
TLV+base64, plain-URL and JSON QR payloads with PNG rendering for invoice reports.
Validation Framework
A declarative rule engine with a generic EN 16931-style core rule set: required seller and buyer data, line math, tax total coherence, currency checks and date formats. Returns a structured error report.
BYOK REST Transport
A resilient request layer with exponential retry/backoff, bearer, api-key, basic and client-certificate authentication, sandbox and production switching, timeouts and full request/response logging. A trust anchor can be pinned per request, so a gateway served under a national CA that no operating system carries stops failing with a TLS error that looks like a network fault.
Certificate Bundle Import (.p12 / .pfx)
Certification authorities hand out one password-protected PKCS#12 bundle, not two PEM files. Upload it on the company form and the key and certificate are unpacked into the BYOK fields, with no openssl command line and nothing that has to run on a server shell — which is the only way this works on Odoo Online.
Certificate Expiry Warning
The stored certificate's expiry date is read and shown, and a warning appears in its last 30 days of validity. Submissions stop the moment a signing certificate lapses, and reissuing one is an appointment with your CA rather than an afternoon's work.
Built to extend
Country connectors register a profile and a generator hook against this engine. The core carries no country-specific logic, so a single foundation serves every jurisdiction — and its validation rules, canonical JSON serializer, XML signer, transport retry loop and document model are covered by the automated test suite that ships inside the module and runs on every Odoo installation with tests enabled.
Data disclosure
This module sends data only to the endpoints you configure in your country connector. No invoice data is transmitted anywhere else, and your certificate and private key never leave your database.
Screenshots
Jurisdiction profile registry: every country connector registers its own profile, document format and in-code generator hook.
E-invoice document envelope: state machine, authority reference and the generated UBL 2.1 payload.
Documents from several jurisdictions side by side, each with its own profile, submission count and status.
BYOK REST transport log: endpoint, HTTP status, latency and retries for every outbound call.
Documentation
Configuration guide included in the package (docs/Configuration_Guide_EN.pdf) — installation and dependencies, menus and access groups, the profile registry and the generator hook a country connector registers, BYOK certificate and transport settings (REST authentication, mutual TLS, sandbox and production), signing, the QR engine, the validation rule set, the transport log, and an end-to-end test walkthrough. The Markdown source ships beside it as docs/Configuration_Guide_EN.md.
Languages: English and Spanish (menus, fields and messages of the engine).
Update date: 2026-10-29 · Version: 19.0.1.0.22
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 2070 |
| Technical Name |
einvoice_core_engine |
| License | OPL-1 |
| Website | https://pokutsoft.com/ |
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