EDI state
edi_state_oca · OCA/edi-framework
Health
83/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 9 months ago
-
Required by20/252 modules depend on it
-
Maturity18/25In 3 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
1 migration note
4 models
7 views
0 HTTP endpoints
Migration considerations
EDIState— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · 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
Technical module for the EDI suite to provide additional states for any records.
Example: a SO is generated via UBL file and you want to provide an ORDRSP with the right state on the order and on each line.
It provides 2 new models:
-
EDI state workflow
- groups states together
- limit states to a specific model
-
EDI state
- describe the state of the record
Dependencies
- Odoo dependencies
- Python dependencies
- PyYAML, openupgradelib
- System dependencies
- None
- Required by
- edi_sale_ubl_oca, edi_sale_ubl_output_oca
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
edi_exchange_type_view_form |
edi.exchange.type | form | Inherits edi_core_oca.edi_exchange_type_view_form | |
edi_state_view_form |
edi.state | form | New | |
edi_state_view_search |
edi.state | search | New | |
edi_state_view_tree |
edi.state | list | New | |
edi_state_workflow_view_form |
edi.state.workflow | form | New | |
edi_state_workflow_view_search |
edi.state.workflow | search | New | |
edi_state_workflow_view_tree |
edi.state.workflow | list | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (1)
-
state_workflow_idsMany2many → edi.state.workflowcomodel_name='edi.state.workflow'help='Allowed workflows that can be used by this type of exchanges. You can select only 1 workflow per model.'string='Enabled state workflows'
-
get_state_for_model(self, model, code=None, default=False)
New fields (5)
-
codeChar -
descriptionChartranslate=True -
is_defaultBoolean -
nameCharrequired=Truetranslate=True -
workflow_idMany2one → edi.state.workflowcomodel_name='edi.state.workflow'ondelete='cascade'
No public methods.
New fields (2)
-
edi_state_idMany2one → edi.statecomodel_name='edi.state'copy=Falseondelete='restrict'string='EDI state' -
edi_state_workflow_idMany2onerelated='edi_state_id.workflow_id'
-
edi_find_state(self, code=None, default=False) -
edi_is_valid_state(self, state=None, exc_type=None)
New fields (5)
-
backend_type_idMany2one → edi.backend.typecomodel_name='edi.backend.type'ondelete='restrict'required=Truestring='Backend type' -
descriptionChar -
model_idMany2one → ir.modelcomodel_name='ir.model'ondelete='set null' -
nameCharrequired=True -
state_idsOne2many → edi.statecomodel_name='edi.state'inverse_name='workflow_id'string='Available states'
-
get_default_state(self) -
get_state(self, code) -
is_valid_for_model(self, model_name)
Loading…
Loading…