ODOO
Workfow
In this step we are going to start workflow in odoo , so we have to ask some Qs
- What is workflow ?
Workflow is away that we use to define all steps to do some tasks or activities in our organization , and it's away to make our work clear and easy
Workflow is consist of some activities and some actions which are depends on activities "eg : to migrate student from first class to the second one , he must study at the first one"
- How to make workflow in odoo ?
To design workflow in odoo we have tow main steps
1- logical design : in this step we define all steps of the task that we want to do , also we define which step must be first and which one must be after which one , also we design the action that must be happened to change from the first step to the second one , also we have to define the user's permissions "which user is allowed to take that action in this workflow" finally we have to design workflow diagram that summarizes our logical design "EG : the diagram bellow "
2- technical design : in this step we write down our logical design as code , to do that we have to
- Create state field which is selection field that contain all states of our workflow as bellow
state = fields.Selection([('draft','Draft'),('unit_manager_approv','Unit Manager Approve'),('general_manager_approv','General Manager Approve')], string="draft", default='draft')
- Create our functions , and in every one we must put all actions that will be happen in one state , and also every function will change the state from one state to another
Watch On YouTube
No comments:
Post a Comment