| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 1366 |
| Technical Name |
l10n_bo_siat_inbound |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 1366 |
| Technical Name |
l10n_bo_siat_inbound |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
Bolivia SIAT Inbound
Parse supplier SIAT fiscal documents, validate the CUF, reconcile to vendor bills
A purpose-built tool for Bolivian taxpayers that receive electronic fiscal documents from their suppliers. It reads the supplier's SIAT XML (factura electronica and computarizada), decodes and validates the CUF (Codigo Unico de Factura) with the official Modulo 11 self-check, verifies the issuer NIT, and automatically reconciles each document against your vendor bills. A pure parser and reconciliation engine - it does not transmit anything to the SIN.
What it does
SIAT XML parser
Reads the canonical SIAT document structures
(facturaElectronicaCompraVenta,
facturaComputarizadaCompraVenta, export and
sector variants), namespace-tolerant, using the Python
standard library only. Header, parties, totals, payment
method, currency and all detail lines are extracted into a
clean Odoo document.
CUF decode & validation
The 54-digit CUF is decoded into its nine component fields (issuer NIT, date-time, branch, modality, emission type, invoice type, document sector, invoice number, sales point) and its Modulo 11 self-check digit is verified. Both the raw numeric form and the Base-16 presentation form are accepted and round-tripped.
Automatic reconciliation
A weighted scoring engine matches each parsed document to the right vendor bill using CUF, issuer NIT, invoice number, total amount (within a configurable tolerance) and issue date. Matches are graded as reconciled, partial or unmatched, with a transparent per-criterion breakdown.
IVA & coherence checks
Computes the recoverable 13% IVA credito fiscal on credit-fiscal invoices, and validates that the document's line totals reconcile to its declared montoTotal and that the CUF-embedded NIT matches the document header.
Validation rules
| Code | Check |
|---|---|
| CUF-01/02 | CUF is well-formed and exactly 54 numeric digits (or valid Base-16). |
| CUF-03 | Modulo 11 self-check digit is correct. |
| CUF-04/05/06 | Modality, emission type and invoice type belong to the SIN catalogues. |
| CUF-07 | The CUF date-time field is a valid timestamp. |
| SIAT-10 | The NIT embedded in the CUF matches the document nitEmisor. |
| SIAT-11/12 | Issuer NIT and buyer document are structurally valid. |
| SIAT-13 | Detail line totals reconcile to the header montoTotal. |
Key features
- Batch import wizard - drop in one or many supplier SIAT XML files.
- Per-document and per-vendor-bill reconciliation buttons, plus a scheduled auto-reconcile job.
- CUF field on vendor bills with a one-click validation action.
- Bolivia NIT field on partners and the company, with structural validation.
- Decoded SIAT catalogues (modality, emission, document sector, payment method, currency) shown in clear labels.
- Full audit trail: raw XML stored, validation results, match score and chatter history.
Scope & boundary
This module is a pure parser and reconciliation engine for documents you have already received from your suppliers. It does not connect to, authenticate against, or transmit anything to the SIN / SIAT platform, and it is not a certified invoicing system. All processing happens inside your own Odoo database.
Screenshots
Inbound Documents
Import Xml
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