Repository
OCA/edi-framework · module folder · Try on Runboat
Module version
1.0.3
Category
Uncategorized
Folder size
0.06 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/edi-framework
Last tracking update
2026-08-07 08:43:06
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Simone Orsi, Enric Tobella, Ricardoalso, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
OCA/edi:
OCA/edi-framework:
odoo/odoo:
- web
- bus
Python dependencies
PyYAML, openupgradelib
System dependencies
None
Required by
edi_sale_ubl_oca, edi_sale_ubl_output_oca
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

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
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_ids Many2many → edi.state.workflow
    comodel_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'
Public methods (1)
  • get_state_for_model(self, model, code=None, default=False)

New fields (5)
  • code Char
  • description Char
    translate=True
  • is_default Boolean
  • name Char
    required=True translate=True
  • workflow_id Many2one → edi.state.workflow
    comodel_name='edi.state.workflow' ondelete='cascade'
Public methods (0)

No public methods.

New fields (2)
  • edi_state_id Many2one → edi.state
    comodel_name='edi.state' copy=False ondelete='restrict' string='EDI state'
  • edi_state_workflow_id Many2one
    related='edi_state_id.workflow_id'
Public methods (2)
  • edi_find_state(self, code=None, default=False)
  • edi_is_valid_state(self, state=None, exc_type=None)

New fields (5)
  • backend_type_id Many2one → edi.backend.type
    comodel_name='edi.backend.type' ondelete='restrict' required=True string='Backend type'
  • description Char
  • model_id Many2one → ir.model
    comodel_name='ir.model' ondelete='set null'
  • name Char
    required=True
  • state_ids One2many → edi.state
    comodel_name='edi.state' inverse_name='workflow_id' string='Available states'
Public methods (3)
  • get_default_state(self)
  • get_state(self, code)
  • is_valid_for_model(self, model_name)

Loading…

Loading…