OdooWiki OCA HUB

TicketBAI - Batuz - declaración de todas las operaciones de venta realizadas por las personas y entidades que desarrollan actividades económicas en Bizkaia

l10n_es_ticketbai_batuz folder_open OCA/l10n-spain open_in_new
Accounting & Finance License: AGPL-3

Módulo para la declaración de todas las operaciones de venta realizadas por las personas y entidades que desarrollan actividades económicas en Bizkaia https://www.batuz.eus/fitxategiak/batuz/lroe/Batuz_LROE_Especificaciones_Env%C3%ADo_Masivo_V1_0_8.pdf

Alcance de operaciones LROE:

  • Operaciones realizadas ALTA (A00) y ANULACIÓN (AN0) de facturas
  • Modelos soportados: PF 140 (Libro Registro de Operaciones Económicas (personas físicas) y PJ 240 Libro Registro de Operaciones Económicas (personas jurídicas)
  • Anotaciones de subcapitulo 1.1 - Ingresos con factura con Software garante (LROE PF 140)
  • Anotaciones de subcapitulo 2.1 - Gastos con factura (LROE PF 140)
  • Anotaciones de subcapitulo 1.1 - Facturas emitidas con Software garante (LROE PJ 240)
  • Anotaciones de capitulo 2 - Facturas recibidas (LROE PJ 240)

El resto de operaciones y anotaciones del LROE quedan fuera del alcance de este módulo.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

This module sends purchase invoices and their cancellations to the Basque tax authority (Batuz/LROE) for companies in Bizkaia, and tracks the registration status of each invoice.

For companies enabled for TicketBAI with the Bizkaia tax agency, this module automatically prepares and sends the required LROE (Libro Registro de Operaciones Económicas) information for purchase invoices and purchase refunds. It supports the PF 140 (individuals) and PJ 240 (companies) models.

When you post a purchase invoice (in_invoice) or a qualifying purchase refund (in_refund), the module builds the LROE data and creates an LROE operation. If the connector is enabled, the sending is queued as a background job; otherwise it is sent immediately. The invoice gets an LROE state (Not recorded, Registration planned, Recorded, Recorded with warnings, Registration error, Cancel, etc.) that you can see on the invoice form.

You can also send invoices manually using the "Send LROE manually" action. Cancelling an invoice triggers a cancellation operation to the tax authority. The module adds fields on fiscal positions and invoices to configure VAT regime keys for purchases, and on partners to mark simplified invoices. It also adds an LROE menu under the TicketBAI configuration menu to review LROE operations and their responses.

Business rules include: purchase refunds default to refund type "differences" and refund key "R1"; supplier invoice series and number are derived from the invoice reference; and you cannot cancel or reset to draft an invoice while a sending job is running.

Menus it adds

LROE
Models and fields (10)
  • res.company · extends an existing modelsend_mode, sent_time, delay_time, use_connector
  • res.partner · extends an existing modellroe_simplified_invoice (Simplified invoices in LROE?)
  • account.move · extends an existing modellroe_state (LROE state), lroe_invoice_dict (LROE last content sent), lroe_operation_ids (LROE Operations), lroe_response_line_ids (LROE Responses), tbai_vat_regime_purchase_key (Purchase VAT Regime Key), tbai_vat_regime_purchase_key2 (Purchase VAT Regime 2nd Key), tbai_vat_regime_purchase_key3 (Purchase VAT Regime 3rd Key)
  • tbai.invoice · extends an existing model
  • lroe.operation · extends an existing modelapi_url (LROE API URL), jobs_ids (Connector Jobs), invoice_ids (Invoices)
  • tbai.vat.regime.key · extends an existing modeltype
  • account.move.reversal · extends an existing modelbatuz_supplier_invoice_number (Supplier Invoice Number), batuz_supplier_invoice_number_required (Is Supplier Invoice Number Required?)
  • account.chart.template · extends an existing model
  • account.fiscal.position · extends an existing modeltbai_vat_regime_key, tbai_vat_regime_key2, tbai_vat_regime_key3, tbai_vat_regime_purchase_key (VAT Regime Key for purchases), tbai_vat_regime_purchase_key2 (VAT Regime 2nd Key for purchases), tbai_vat_regime_purchase_key3 (VAT Regime 3rd Key for purchases)
  • account.fiscal.position.template · extends an existing modeltbai_vat_regime_key, tbai_vat_regime_key2, tbai_vat_regime_key3, tbai_vat_regime_purchase_key (VAT Regime Key for purchases), tbai_vat_regime_purchase_key2 (VAT Regime 2nd Key for purchases), tbai_vat_regime_purchase_key3 (VAT Regime 3rd Key for purchases)

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. The module is very large and only part of the code was read. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/l10n-spain.

terminal Installation and usage

OCA documentation · Odoo 16.0

Para instalar esté módulo necesita:

  • Los módulos l10n_es_ticketbai y l10n_es_ticketbai_api_batuz

Se puede utilizar de forma automática al validar un ticket o mediante una opción de descarga de un fichero comprimido que dadas dos fechas, contiene todas las operaciones económicas de venta no presentadas en el LROE.

No verified information in OCA: Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.