- state == "pending"
-
!record {model: project.task.delegate, id: delegate_id}:
- user_id: res_users_analyst
+ user_id: base.user_niv
planned_hours: 12.0
planned_hours_me: 2.0
-
!assert {model: project.task, id: project_task_1, severity: error, string: task should be open.}:
- state == "open"
-
- !record {model: project.task.reevaluate, id: reevaluate_id}:
- remaining_hours : 120
--
- I chnge the stage of task to next stage
+ I change the stage of task to next stage.
-
!python {model: project.task}: |
- self.prev_type(cr, uid, [ref("project_task_1")])
+ self.next_type(cr, uid, [ref("project_task_1")])
+-
+ !record {model: project.task.reevaluate, id: reevaluate_id}:
+ remaining_hours : 120
-
I reevaluate task with remaining hours.
-
!assert {model: project.task, id: project_task_1, severity: error, string: task should be reevaluated}:
- remaining_hours == 120.0
-
- I chnge the stage of task to next stage
--
- !python {model: project.task}: |
- self.next_type(cr, uid, [ref("project_task_1")])
--
I close the task.
-
!python {model: project.task}: |
!assert {model: project.task, id: project_task_1, severity: error, string: task is in open state}:
- state == "done"
-
+ I change the stage of task to previous stage.
+-
+ !python {model: project.task}: |
+ self.prev_type(cr, uid, [ref("project_task_1")])
+-
I cancel Task.
-
!python {model: project.task}: |