summaryrefslogtreecommitdiff
path: root/addons/project/test/task_process.yml
diff options
context:
space:
mode:
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>2011-12-09 13:00:04 +0530
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>2011-12-09 13:00:04 +0530
commit44d56c5bea5ae7948006a90bc8320a3bc4240961 (patch)
tree7b1fec6ea33a594e5d0b858ddacaadbaaadf59ed /addons/project/test/task_process.yml
parentee3dd3f581e259af3084b2b0289c02e8de404ed8 (diff)
[IMP] improvement in code
bzr revid: tpa@tinyerp.com-20111209073004-ll1y70suz5oo0yv5
Diffstat (limited to 'addons/project/test/task_process.yml')
-rw-r--r--addons/project/test/task_process.yml16
1 files changed, 12 insertions, 4 deletions
diff --git a/addons/project/test/task_process.yml b/addons/project/test/task_process.yml
index e294b117397..a12877526c1 100644
--- a/addons/project/test/task_process.yml
+++ b/addons/project/test/task_process.yml
@@ -40,6 +40,11 @@
!record {model: project.task.reevaluate, id: reevaluate_id}:
remaining_hours : 120
-
+ I chnge the stage of task to next stage
+-
+ !python {model: project.task}: |
+ self.prev_type(cr, uid, [ref("project_task_1")])
+-
I reevaluate task with remaining hours.
-
!python {model: project.task.reevaluate}: |
@@ -50,10 +55,15 @@
!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}: |
- self.do_close(cr, uid, [ref("project_task_1")])
+ self.action_close(cr, uid, [ref("project_task_1")])
-
I check state after closed.
-
@@ -63,6 +73,4 @@
I cancel Task.
-
!python {model: project.task}: |
- self.do_cancel(cr, uid, [ref("project_task_2")])
-
-
+ self.do_cancel(cr, uid, [ref("project_task_2")]) \ No newline at end of file