The State Flow Manager module provides an abstract class to add a state flow to any Odoo model. It allows you to define processes, states, and transitions that can be applied to your models to manage their state transitions.
This module provides the core functionality for managing state flows.
-
Models:
state_flow_mixin: Abstract model to add state flow functionality to any model.state_flow_process: Model to define state flow processes.state_flow_state: Model to define states within a process.state_flow_transition: Model to define transitions between states.
-
Views:
state_flow_process_views.xml: Views for managing state flow processes.
-
Security:
ir.model.access.csv: Access control rules for state flow models.
This module demonstrates how to add a state flow to the res.partner model.
-
Models:
res_partner: Inheritsres.partnerand adds state flow functionality.
-
Views:
res_partner_views.xml: Views for managing state flow inres.partner.
- Clone the repository into your Odoo addons directory.
- Update the Odoo module list.
- Install the
state_flow_managermodule. - Install the
state_flow_manager_demomodule to see a demonstration of the state flow functionality.
- Define a state flow process in the State Flow Process Manager.
- Add states and transitions to the process.
- Apply the state flow mixin to your model to enable state flow functionality.
This repository is licensed under AGPL-3.0.
However, each module can have a totally different license. Consult each module's manifest.py file, which contains a license key that explains its license.