Repository
odoo/odoo · module folder
Module version
1.1
Category
Accounting/Localizations/EDI
Folder size
0.27 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-07 06:47:04
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Raphael Collet, Christophe Simonis, Josse Colpaert, Odoo Translation Bot, Nicolas Martinelli, Laurent Smet, Julien Castiaux, Andrea Grazioso (agr-odoo), Anh Thao Pham (pta), Gorash, jbw-odoo, Gaetan Vanden Bergh (gavb), Dylan Kiss (dyki), Paolo Gatti, guva-odoo, Sven Fuehr, Mohamed GadAlrab, Louis Gobert, hatr-odoo, Victorien (viso), Claire (clbr), gteboul, Léo Gizard, Antoine Dupuis, David Monnom, Carmine, Krzysztof Magusiak (krma), dvsh-odoo, Basioni (basm), Ester Andreetto, Junqi, cahu
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_es_edi_tbai_pos
Description
This module sends invoices and vendor bills to the "Diputaciones
Forales" of Araba/Álava, Bizkaia and Gipuzkoa.

Invoices and bills get converted to XML and regularly sent to the
Basque government servers which provides them with a unique identifier.
A hash chain ensures the continuous nature of the invoice/bill
sequences. QR codes are added to emitted (sent/printed) invoices,
bills and tickets to allow anyone to check they have been declared.

You need to configure your certificate and the tax agency.
    

Code Analysis

Views touched (19)
XML IDNameModelTypeStatus
certificate_certificate_view_form certificate_certificate_view_form.inherit.l10n_es_edi_tbai certificate.certificate form Inherits certificate.certificate_certificate_view_form
certificate_certificate_view_search certificate_certificate_view_search.inherit.l10n_es_edi_tbai certificate.certificate search Inherits certificate.certificate_certificate_view_search
l10n_es_tbai_external_layout_standard l10n_es_tbai_external_layout_standard ir.ui.view qweb Inherits account.report_invoice_document
res_company_form_l10n_es_edi_tbai res.company.form res.company form Inherits account.view_company_form
res_config_settings_view_form res.config.settings.view.form.inherit.l10n.es res.config.settings form Inherits l10n_es.res_config_settings_view_form
template_LROE_240_inner template_LROE_240_inner ir.ui.view qweb New
template_LROE_240_inner_recibidas template_LROE_240_inner_recibidas ir.ui.view qweb New
template_LROE_240_main template_LROE_240_main ir.ui.view qweb New
template_LROE_240_main_recibidas template_LROE_240_main_recibidas ir.ui.view qweb New
template_LROE_recibidas_common template_LROE_recibidas_common ir.ui.view qweb New
template_digital_signature template_digital_signature ir.ui.view qweb New
template_invoice_bundle template_invoice_bundle ir.ui.view qweb New
template_invoice_desglose template_invoice_desglose ir.ui.view qweb New
template_invoice_factura template_invoice_factura ir.ui.view qweb New
template_invoice_main_cancel template_invoice_main_cancel ir.ui.view qweb New
template_invoice_main_post template_invoice_main_post ir.ui.view qweb New
template_invoice_sujetos template_invoice_sujetos ir.ui.view qweb New
view_account_move_reversal account.move.reversal.form.inherit.l10n_es_edi_tbai account.move.reversal form Inherits account.view_account_move_reversal
view_move_form_inherit_l10n_es_edi_tbai account.move.form.inherit.l10n_es_edi_tbai account.move form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (8)

New fields (11)
  • l10n_es_tbai_cancel_document_id Many2one → l10n_es_edi_tbai.document
    comodel_name='l10n_es_edi_tbai.document' copy=False readonly=True
  • l10n_es_tbai_cancel_file Binary
    related='l10n_es_tbai_cancel_document_id.xml_attachment_id.datas' string='TicketBAI Cancel File'
  • l10n_es_tbai_cancel_file_name Char
    related='l10n_es_tbai_cancel_document_id.xml_attachment_id.name' string='TicketBAI Cancel File Name'
  • l10n_es_tbai_chain_index Integer
    help='Invoice index in chain, set if and only if an in-chain XML was submitted and did not error' related='l10n_es_tbai_post_document_id.chain_index' string='TicketBAI chain index'
  • l10n_es_tbai_is_required Boolean
    compute='_compute_l10n_es_tbai_is_required' help='Is the Basque EDI (TicketBAI) needed ?' string='TicketBAI required'
  • l10n_es_tbai_post_document_id Many2one → l10n_es_edi_tbai.document
    comodel_name='l10n_es_edi_tbai.document' copy=False readonly=True
  • l10n_es_tbai_post_file Binary
    related='l10n_es_tbai_post_document_id.xml_attachment_id.datas' string='TicketBAI Post File'
  • l10n_es_tbai_post_file_name Char
    related='l10n_es_tbai_post_document_id.xml_attachment_id.name' string='TicketBAI Post Attachment Name'
  • l10n_es_tbai_refund_reason Selection
    copy=False help='BOE-A-1992-28740. Ley 37/1992, de 28 de diciembre, del Impuesto sobre el Valor Añadido. Artículo 80. Modificación de la base imponible.' selection=TBAI_REFUND_REASONS string='Invoice Refund Reason Code (TicketBai)'
  • l10n_es_tbai_reversed_ids Many2many → account.move
    domain="[('move_type', '=', 'in_invoice'), ('commercial_partner_id', '=', commercial_partner_id)]" help='In the case where a vendor refund has multiple original invoices, you can set them here. ' string='Refunded Vendor Bills' args: 'account.move', 'account_move_tbai_reversed_moves', 'refund_id', 'reversed_move_id'
  • l10n_es_tbai_state Selection
    compute='_compute_l10n_es_tbai_state' string='TicketBAI status' args: [('to_send', 'To Send'), ('sent', 'Sent'), ('cancelled', 'Cancelled')]
Public methods (4)
  • button_draft(self)
  • l10n_es_tbai_cancel(self)
  • l10n_es_tbai_resend_bill(self)
  • l10n_es_tbai_send_bill(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • l10n_es_tbai_is_required Boolean
    compute='_compute_l10n_es_tbai_is_required' readonly=True string='Is TicketBai required for this reversal'
  • l10n_es_tbai_refund_reason Selection
    help='BOE-A-1992-28740. Ley 37/1992, de 28 de diciembre, del Impuesto sobre el Valor Añadido. Artículo 80. Modificación de la base imponible.' selection=TBAI_REFUND_REASONS string='Invoice Refund Reason Code (TicketBai)'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • scope Selection
    selection_add=[('tbai', 'TBAI')]
Public methods (0)

No public methods.

New fields (8)
  • chain_index Integer
    copy=False readonly=True
  • company_id Many2one → res.company
    required=True args: 'res.company'
  • date Date
    readonly=True required=True
  • is_cancel Boolean
    default=False readonly=True
  • name Char
    readonly=True required=True
  • response_message Text
    copy=False readonly=True
  • state Selection
    copy=False default='to_send' readonly=True string='status' args: [('to_send', 'To Send'), ('accepted', 'Accepted'), ('rejected', 'Rejected')]
  • xml_attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' copy=False readonly=True string='XML Attachment'
Public methods (0)

No public methods.

New fields (7)
  • l10n_es_tbai_certificate_id Many2one → certificate.certificate
    comodel_name='certificate.certificate' compute='_compute_l10n_es_tbai_certificate' readonly=False store=True string='Certificate (TicketBAI)'
  • l10n_es_tbai_certificate_ids One2many → certificate.certificate
    comodel_name='certificate.certificate' domain=[('scope', '=', 'tbai')] inverse_name='company_id'
  • l10n_es_tbai_chain_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' copy=False readonly=True string='TicketBai account.move chain sequence'
  • l10n_es_tbai_is_enabled Boolean
    compute='_compute_l10n_es_tbai_is_enabled'
  • l10n_es_tbai_license_html Html
    compute='_compute_l10n_es_tbai_license_html' string='TicketBAI license'
  • l10n_es_tbai_tax_agency Selection
    selection=[('araba', 'Hacienda Foral de Araba'), ('bizkaia', 'Hacienda Foral de Bizkaia'), ('gipuzkoa', 'Hacienda Foral de Gipuzkoa')] string='Tax Agency for TBAI'
  • l10n_es_tbai_test_env Boolean
    default=True help='Use the test environment for TicketBAI' string='TBAI Test Mode'
Public methods (0)

No public methods.

New fields (3)
  • l10n_es_tbai_certificate_ids One2many
    readonly=False related='company_id.l10n_es_tbai_certificate_ids'
  • l10n_es_tbai_tax_agency Selection
    readonly=False related='company_id.l10n_es_tbai_tax_agency'
  • l10n_es_tbai_test_env Boolean
    readonly=False related='company_id.l10n_es_tbai_test_env'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…