EDI state

edi_state_oca
REPOSITORY
REPOSITORYOCA/edi-framework
GIT
GIThttps://github.com/OCA/edi-framework.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi-framework/tree/18.0/edi_state_oca
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSEnric Tobella, Weblate, OCA-git-bot, Simone Orsi, oca-ci, Ricardoalso
WEBSITE
WEBSITEhttps://github.com/OCA/edi-framework
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:12
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/edi:
    - base_edi
OCA/edi-framework:
    - edi_core_oca
odoo/odoo:
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - base_sparse_field
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES PyYAML
openupgradelib
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 notebook 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
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)
REPOSITORY
REPOSITORYOCA/edi-framework
GIT
GIThttps://github.com/OCA/edi-framework.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi-framework/tree/16.0/edi_state_oca
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Simone Orsi, oca-ci, duongtq
WEBSITE
WEBSITEhttps://github.com/OCA/edi-framework
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:46
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/connector:
    - component_event
    - component
OCA/edi:
    - base_edi
OCA/edi-framework:
    - edi_oca
OCA/queue:
    - queue_job
odoo/odoo:
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - base_sparse_field
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES PyYAML
cachetools
requests
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
edi_exchange_type_view_form edi.exchange.type group Inherits edi_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 tree 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 tree New
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)
REPOSITORY
REPOSITORYOCA/edi-framework
GIT
GIThttps://github.com/OCA/edi-framework.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi-framework/tree/14.0/edi_state_oca
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSEnric Tobella, Weblate, OCA-git-bot, Simone Orsi, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/edi-framework
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/connector:
    - component_event
    - component
OCA/edi:
    - edi_oca
    - base_edi
OCA/queue:
    - queue_job
odoo/odoo:
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - base_sparse_field
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES pyyaml
cachetools
requests
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
edi_exchange_type_view_form edi.exchange.type group Inherits edi_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 tree 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 tree New
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)