Repository
OCA/l10n-spain · module folder · Try on Runboat
Module version
1.1.0
Category
Accounting & Finance
Folder size
0.27 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-spain
Last tracking update
2026-08-07 08:09:10
Authors
Odoo Community Association (OCA), Binovo, Digital5
Maintainers
Odoo Community Association (OCA), Binovo, Digital5
Committers
Weblate, OCA-git-bot, oca-ci, Aritz Olea, bilbonet
Odoo dependencies
Python dependencies
requests_pkcs12==1.22, xmltodict, qrcode, xmlsig, unidecode, requests
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (13)
XML IDNameModelTypeStatus
lroe_operation_form_view_inherit_batuz lroe.operation.form.view lroe.operation form Inherits l10n_es_ticketbai_api_batuz.lroe_operation_form_view
lroe_operation_search_view_inherit_batuz lroe.operation.search.view lroe.operation search Inherits l10n_es_ticketbai_api_batuz.lroe_operation_search_view
lroe_operation_tree_view_inherit_batuz lroe.operation.tree.view lroe.operation tree Inherits l10n_es_ticketbai_api_batuz.lroe_operation_tree_view
move_supplier_form_inherit_l10n_es_ticketbai_batuz account.move.supplier.form account.move form Inherits account.view_move_form
tbai_vat_regime_key_view_search_inherit_batuz tbai.vat.regime.key.view.search tbai.vat.regime.key search Inherits l10n_es_ticketbai.tbai_vat_regime_key_view_search
tbai_vat_regime_key_view_tree_inherit_batuz tbai.vat.regime.key.view.tree tbai.vat.regime.key tree Inherits l10n_es_ticketbai.tbai_vat_regime_key_view_tree
view_account_move_filter_inherit_l10n_es_ticketbai_batuz account.move.select.batuz account.move Inherits account.view_account_invoice_filter
view_account_move_reversal_inherit_batuz account.move.reversal.batuz.form account.move.reversal form Inherits account.view_account_move_reversal
view_account_position_form_inherit_l10n_es_ticketbai_batuz account.fiscal.position.form.batuz account.fiscal.position form Inherits account.view_account_position_form
view_account_position_template_form_inherit_l10n_es_ticketbai_batuz account.fiscal.position.template.form.batuz account.fiscal.position.template form Inherits account.view_account_position_template_form
view_company_form_inherit_batuz view_company_form_inherit_batuz res.company form Inherits l10n_es_ticketbai_api.view_company_form_inherit
view_move_form_tbai_batuz view.move.form.tbai.batuz account.move form Inherits l10n_es_ticketbai.view_move_form_inherit
view_partner_form_inherit_l10n_es_ticketbai_batuz res.partner form Inherits account.view_partner_property_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (10)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (6)
  • tbai_vat_regime_key Many2one
    domain=[('type', '=', 'sale')]
  • tbai_vat_regime_key2 Many2one
    domain=[('type', '=', 'sale')]
  • tbai_vat_regime_key3 Many2one
    domain=[('type', '=', 'sale')]
  • tbai_vat_regime_purchase_key Many2one → tbai.vat.regime.key
    comodel_name='tbai.vat.regime.key' copy=False domain=[('type', '=', 'purchase')] string='VAT Regime Key for purchases'
  • tbai_vat_regime_purchase_key2 Many2one → tbai.vat.regime.key
    comodel_name='tbai.vat.regime.key' copy=False domain=[('type', '=', 'purchase')] string='VAT Regime 2nd Key for purchases'
  • tbai_vat_regime_purchase_key3 Many2one → tbai.vat.regime.key
    comodel_name='tbai.vat.regime.key' copy=False domain=[('type', '=', 'purchase')] string='VAT Regime 3rd Key for purchases'
Public methods (0)

No public methods.

New fields (6)
  • tbai_vat_regime_key Many2one
    domain=[('type', '=', 'sale')]
  • tbai_vat_regime_key2 Many2one
    domain=[('type', '=', 'sale')]
  • tbai_vat_regime_key3 Many2one
    domain=[('type', '=', 'sale')]
  • tbai_vat_regime_purchase_key Many2one → tbai.vat.regime.key
    comodel_name='tbai.vat.regime.key' copy=False domain=[('type', '=', 'purchase')] string='VAT Regime Key for purchases'
  • tbai_vat_regime_purchase_key2 Many2one → tbai.vat.regime.key
    comodel_name='tbai.vat.regime.key' copy=False domain=[('type', '=', 'purchase')] string='VAT Regime 2nd Key for purchases'
  • tbai_vat_regime_purchase_key3 Many2one → tbai.vat.regime.key
    comodel_name='tbai.vat.regime.key' copy=False domain=[('type', '=', 'purchase')] string='VAT Regime 3rd Key for purchases'
Public methods (0)

No public methods.

New fields (7)
  • lroe_invoice_dict Text
    copy=False readonly=True string='LROE last content sent'
  • lroe_operation_ids Many2many → lroe.operation
    column1='invoice_id' column2='lroe_operation_id' comodel_name='lroe.operation' copy=False relation='account_invoice_lroe_operation_rel' string='LROE Operations'
  • lroe_response_line_ids Many2many → lroe.operation.response.line
    comodel_name='lroe.operation.response.line' compute='_compute_lroe_response_line_ids' string='LROE Responses'
  • lroe_state Selection
    copy=False default='not_sent' help='Indicates the state of this invoice in relation with LROE/Batuz' selection=LROE_STATES string='LROE state'
  • tbai_vat_regime_purchase_key Many2one → tbai.vat.regime.key
    comodel_name='tbai.vat.regime.key' copy=True domain=[('type', '=', 'purchase')] string='Purchase VAT Regime Key'
  • tbai_vat_regime_purchase_key2 Many2one → tbai.vat.regime.key
    comodel_name='tbai.vat.regime.key' copy=True domain=[('type', '=', 'purchase')] string='Purchase VAT Regime 2nd Key'
  • tbai_vat_regime_purchase_key3 Many2one → tbai.vat.regime.key
    comodel_name='tbai.vat.regime.key' copy=True domain=[('type', '=', 'purchase')] string='Purchase VAT Regime 3rd Key'
Public methods (14)
  • action_invoice_draft(self)
  • action_send_lroe_manually(self)
  • batuz_get_supplier_num_factura(self)
  • batuz_get_supplier_serie_factura(self)
    Consultamos a hacienda cómo extraer la serie de una factura de proveedor. Al no ser posible en algunos casos, decidimos tomar ciertos caracteres como serie y el resto como número. Aunque la serie no es obligatoria en facturas recibidas, sí lo es en las rectificativas, por lo que es necesario informarla siempre.
  • button_cancel(self)
  • create(self, vals_list)
    @api.model_create_multi
  • onchange_fiscal_position_id_lroe_vat_regime_key(self)
    @api.onchange('fiscal_position_id', 'partner_id')
  • set_lroe_state_cancel(self)
  • set_lroe_state_cancel_modified(self)
  • set_lroe_state_error(self)
  • set_lroe_state_pending(self)
  • set_lroe_state_recorded(self)
  • set_lroe_state_recorded_modified(self)
  • set_lroe_state_recorded_warning(self)

New fields (2)
  • batuz_supplier_invoice_number Char
    string='Supplier Invoice Number'
  • batuz_supplier_invoice_number_required Boolean
    default=_default_batuz_supplier_invoice_number_required string='Is Supplier Invoice Number Required?'
Public methods (1)
  • reverse_moves(self)

New fields (3)
  • api_url Char
    compute='_compute_api_url' args: 'LROE API URL'
  • invoice_ids Many2many → account.move
    column1='lroe_operation_id' column2='invoice_id' comodel_name='account.move' relation='account_invoice_lroe_operation_rel' string='Invoices'
  • jobs_ids Many2many → queue.job
    column1='lroe_operation_id' column2='job_id' comodel_name='queue.job' copy=False string='Connector Jobs'
Public methods (9)
  • create(self, vals_list)
    @api.model_create_multi
  • get_lroe_api(self, **kwargs)
  • mark_as_error(self)
  • mark_as_recorded(self)
  • mark_as_warning(self)
  • process(self)
  • send(self, **kwargs)
  • send_one_operation(self)
  • send_one_operation_job(self)

New fields (4)
  • delay_time Float
    help='In hours'
  • send_mode Selection
    default='auto' selection=[('auto', 'On validate'), ('fixed', 'At fixed time'), ('delayed', 'With delay'), ('end_quarter', 'At the end of the quarter')]
  • sent_time Float
    help='In hours'
  • use_connector Boolean
    help="Check it to use connector instead of sending the invoice directly when it's validated"
Public methods (0)

No public methods.

New fields (1)
  • lroe_simplified_invoice Boolean
    help='Checking this mark, invoices done to this partner will be sent to LROE as simplified invoices.' string='Simplified invoices in LROE?'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • get_lroe_ticketbai_api(self, **kwargs)
  • send(self, **kwargs)

New fields (1)
  • type Selection
    required=True selection=[('sale', 'Sale'), ('purchase', 'Purchase')]
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…