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

Code Analysis

Views touched (9)
XML IDNameModelTypeStatus
lroe_chapter_form_view lroe.chapter.form.view lroe.chapter form New
lroe_chapter_search_view lroe.chapter.search.view lroe.chapter search New
lroe_chapter_tree_view lroe.chapter.tree.view lroe.chapter tree New
lroe_operation_form_view lroe.operation.form.view lroe.operation form New
lroe_operation_response_form_view lroe.operation.response.form.view lroe.operation.response form New
lroe_operation_response_tree_view lroe.operation.response.tree.view lroe.operation.response tree New
lroe_operation_search_view lroe.operation.search.view lroe.operation search New
lroe_operation_tree_view lroe.operation.tree.view lroe.operation tree New
view_company_form_tbai_batuz view.company.form.tbai.batuz res.company form Inherits l10n_es_ticketbai_api.view_company_form_inherit
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (4)
  • code Char
    required=True
  • lroe_chapter_id Many2one → lroe.chapter
    comodel_name='lroe.chapter' string='Parent chapter'
  • model Selection
    default=LROEModelEnum.model_pj_240.value required=True string='LROE Model' args: [(LROEModelEnum.model_pj_240.value, 'LROE PJ 240'), (LROEModelEnum.model_pf_140.value, 'LROE PF 140')]
  • name Char
    required=True
Public methods (0)

No public methods.

New fields (15)
  • company_id Many2one → res.company
    required=True args: 'res.company'
  • lroe_chapter_id Many2one → lroe.chapter
    comodel_name='lroe.chapter' required=True string='Chapter'
  • lroe_subchapter_id Many2one → lroe.chapter
    comodel_name='lroe.chapter' string='Subchapter'
  • model Selection
    readonly=True related='company_id.lroe_model' required=True
  • name Char
    compute='_compute_lroe_operation_name' store=True
  • response_ids One2many → lroe.operation.response
    comodel_name='lroe.operation.response' inverse_name='lroe_operation_id' string='Operation global responses'
  • state Selection
    default=LROEOperationStateEnum.DRAFT.value selection=[(LROEOperationStateEnum.DRAFT.value, 'Draft'), (LROEOperationStateEnum.ERROR.value, 'Error'), (LROEOperationStateEnum.CANCEL.value, 'Cancel'), (LROEOperationStateEnum.RECORDED_WARNING.value, 'Recorded Warning'), (LROEOperationStateEnum.RECORDED.value, 'Recorded')]
  • tbai_invoice_ids One2many → tbai.invoice
    comodel_name='tbai.invoice' inverse_name='lroe_operation_id' string='TBai Customer Invoices'
  • trx_gzip_file Binary
  • trx_gzip_fname Char
    args: 'GZIP File Name'
  • trx_gzip_fsize Integer
    args: 'GZIP File Size'
  • type Selection
    default=LROEOperationEnum.create.value required=True args: [(LROEOperationEnum.create.value, 'Create'), (LROEOperationEnum.cancel.value, 'Cancel'), (LROEOperationEnum.update.value, 'Update'), (LROEOperationEnum.query.value, 'Query')]
  • xml_datas Binary
  • xml_datas_fname Char
    args: 'XML File Name'
  • xml_file_size Integer
    args: 'XML File Size'
Public methods (14)
  • build_cabecera_ejercicio(self)
  • build_cabecera_pf_140(self)
  • build_cabecera_pj_240(self)
  • build_facturas_emitidas(self)
  • build_facturas_recibidas(self)
  • build_ingresos(self)
  • build_obligado_tributario(self)
  • build_xml_140_1_1(self)
  • build_xml_140_2_1(self)
  • build_xml_240_1_1(self)
  • build_xml_240_2(self)
  • build_xml_file(self)
  • get_lroe_operations_xml(self)
    Se concatena el modelo + capitulo/subcatpitulo y se busca el metodo especifico para crear el xml
  • set_trx_gzip_file(self)

New fields (10)
  • code Char
  • description Char
  • lroe_operation_id Many2one → lroe.operation
    comodel_name='lroe.operation' ondelete='cascade' required=True
  • lroe_record_date Char
  • lroe_record_id Char
  • lroe_record_number Char
  • response_line_ids One2many → lroe.operation.response.line
    comodel_name='lroe.operation.response.line' inverse_name='lroe_response_id' string='Response Line'
  • state Selection
    required=True selection=[(LROEOperationResponseState.BUILD_ERROR.value, 'Build error'), (LROEOperationResponseState.REQUEST_ERROR.value, 'Request error'), (LROEOperationResponseState.CORRECT.value, 'Correct'), (LROEOperationResponseState.PARTIALLY_CORRECT.value, 'Partially correct'), (LROEOperationResponseState.INCORRECT.value, 'Incorrect')]
  • xml Binary
    string='XML Response'
  • xml_fname Char
    args: 'XML File Name'
Public methods (6)
  • get_lroe_response_xml_records(self, xml_root)
    @api.model
  • get_lroe_xml_schema(self, lroe_operation)
    @api.model
  • get_tbai_state(lroe_response_operation)
    @staticmethod
  • prepare_lroe_error_values(self, lroe_operation, msg, **kwargs)
    @api.model
  • prepare_lroe_response_values(self, lroe_srv_response, lroe_operation, **kwargs)
    @api.model
  • validate_response_line_state(self, response_line_record_state)
    @api.model

New fields (8)
  • code Char
  • description Char
  • lroe_operation_id Many2one → lroe.operation
    comodel_name='lroe.operation' related='lroe_response_id.lroe_operation_id'
  • lroe_response_id Many2one → lroe.operation.response
    comodel_name='lroe.operation.response' ondelete='cascade' required=True
  • response_message Char
    compute='_compute_line_message' string='LROE Response Message'
  • state Selection
    required=True selection=[(LROEOperationResponseLineState.CORRECT.value, 'Correct'), (LROEOperationResponseLineState.CORRECT_WITH_ERRORS.value, 'Correct with errors'), (LROEOperationResponseLineState.INCORRECT.value, 'Incorrect')]
  • tbai_invoice_id Many2one → tbai.invoice
    comodel_name='tbai.invoice' ondelete='cascade' related='tbai_response_id.tbai_invoice_id' required=True
  • tbai_response_id Many2one → tbai.response
    comodel_name='tbai.response' ondelete='cascade'
Public methods (0)

No public methods.

New fields (2)
  • lroe_model Selection
    default=LROEModelEnum.model_pj_240.value required=True string='LROE Model' args: [(LROEModelEnum.model_pj_240.value, 'LROE PJ 240'), (LROEModelEnum.model_pf_140.value, 'LROE PF 140')]
  • main_activity_iae Char
    size=7 string='Epígrafe I.A.E. actividad principal'
Public methods (0)

No public methods.

New fields (1)
  • lroe_operation_id Many2one → lroe.operation
    comodel_name='lroe.operation' string='TicketBAI-Batuz LROE Operation'
Public methods (4)
  • create_tbai_lroe_operation(self)
  • get_lroe_ticketbai_api(self, **kwargs)
  • send(self, **kwargs)
  • send_lroe_ticketbai(self, **kwargs)

Loading…

Loading…

Loading…

Loading…

Loading…