TicketBAI (API) - 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_api_batuz · OCA/l10n-spain
Health
85/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 10 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 6 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
4 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
3.58 MB
Module directory on disk
Code analysis
3 migration notes
6 models
9 views
0 HTTP endpoints
Migration considerations
lroe_operation_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcelroe_operation_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (3 occurrences in this file) migration-view-tree-tag · sourceview_company_form_tbai_batuz— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- requests_pkcs12==1.22, xmltodict, qrcode, xmlsig
- System dependencies
- None
- Required by
- l10n_es_ticketbai_batuz
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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)
-
codeCharrequired=True -
lroe_chapter_idMany2one → lroe.chaptercomodel_name='lroe.chapter'string='Parent chapter' -
modelSelectiondefault=LROEModelEnum.model_pj_240.valuerequired=Truestring='LROE Model' args: [(LROEModelEnum.model_pj_240.value, 'LROE PJ 240'), (LROEModelEnum.model_pf_140.value, 'LROE PF 140')] -
nameCharrequired=True
No public methods.
New fields (15)
-
company_idMany2one → res.companyrequired=True args: 'res.company' -
lroe_chapter_idMany2one → lroe.chaptercomodel_name='lroe.chapter'required=Truestring='Chapter' -
lroe_subchapter_idMany2one → lroe.chaptercomodel_name='lroe.chapter'string='Subchapter' -
modelSelectionreadonly=Truerelated='company_id.lroe_model'required=True -
nameCharcompute='_compute_lroe_operation_name'store=True -
response_idsOne2many → lroe.operation.responsecomodel_name='lroe.operation.response'inverse_name='lroe_operation_id'string='Operation global responses' -
stateSelectiondefault=LROEOperationStateEnum.DRAFT.valueselection=[(LROEOperationStateEnum.DRAFT.value, 'Draft'), (LROEOperationStateEnum.ERROR.value, 'Error'), (LROEOperationStateEnum.CANCEL.value, 'Cancel'), (LROEOperationStateEnum.RECORDED_WARNING.value, 'Recorded Warning'), (LROEOperationStateEnum.RECORDED.value, 'Recorded')] -
tbai_invoice_idsOne2many → tbai.invoicecomodel_name='tbai.invoice'inverse_name='lroe_operation_id'string='TBai Customer Invoices' -
trx_gzip_fileBinary -
trx_gzip_fnameCharargs: 'GZIP File Name' -
trx_gzip_fsizeIntegerargs: 'GZIP File Size' -
typeSelectiondefault=LROEOperationEnum.create.valuerequired=True args: [(LROEOperationEnum.create.value, 'Create'), (LROEOperationEnum.cancel.value, 'Cancel'), (LROEOperationEnum.update.value, 'Update'), (LROEOperationEnum.query.value, 'Query')] -
xml_datasBinary -
xml_datas_fnameCharargs: 'XML File Name' -
xml_file_sizeIntegerargs: 'XML File Size'
-
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)
-
codeChar -
descriptionChar -
lroe_operation_idMany2one → lroe.operationcomodel_name='lroe.operation'ondelete='cascade'required=True -
lroe_record_dateChar -
lroe_record_idChar -
lroe_record_numberChar -
response_line_idsOne2many → lroe.operation.response.linecomodel_name='lroe.operation.response.line'inverse_name='lroe_response_id'string='Response Line' -
stateSelectionrequired=Trueselection=[(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')] -
xmlBinarystring='XML Response' -
xml_fnameCharargs: 'XML File Name'
-
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)
-
codeChar -
descriptionChar -
lroe_operation_idMany2one → lroe.operationcomodel_name='lroe.operation'related='lroe_response_id.lroe_operation_id' -
lroe_response_idMany2one → lroe.operation.responsecomodel_name='lroe.operation.response'ondelete='cascade'required=True -
response_messageCharcompute='_compute_line_message'string='LROE Response Message' -
stateSelectionrequired=Trueselection=[(LROEOperationResponseLineState.CORRECT.value, 'Correct'), (LROEOperationResponseLineState.CORRECT_WITH_ERRORS.value, 'Correct with errors'), (LROEOperationResponseLineState.INCORRECT.value, 'Incorrect')] -
tbai_invoice_idMany2one → tbai.invoicecomodel_name='tbai.invoice'ondelete='cascade'related='tbai_response_id.tbai_invoice_id'required=True -
tbai_response_idMany2one → tbai.responsecomodel_name='tbai.response'ondelete='cascade'
No public methods.
New fields (2)
-
lroe_modelSelectiondefault=LROEModelEnum.model_pj_240.valuerequired=Truestring='LROE Model' args: [(LROEModelEnum.model_pj_240.value, 'LROE PJ 240'), (LROEModelEnum.model_pf_140.value, 'LROE PF 140')] -
main_activity_iaeCharsize=7string='Epígrafe I.A.E. actividad principal'
No public methods.
New fields (1)
-
lroe_operation_idMany2one → lroe.operationcomodel_name='lroe.operation'string='TicketBAI-Batuz LROE Operation'
-
create_tbai_lroe_operation(self) -
get_lroe_ticketbai_api(self, **kwargs) -
send(self, **kwargs) -
send_lroe_ticketbai(self, **kwargs)
Loading…
Loading…
Loading…
Loading…
Loading…