[IMP]project_gtd: clean yml file
bzr revid: hpa@tinyerp.com-20111122071020-0uwauqbta5k6pigu
This commit is contained in:
parent
8301ca9e47
commit
e27eeae850
|
@ -57,7 +57,8 @@ performing those tasks.
|
|||
],
|
||||
'demo_xml': ['project_gtd_demo.xml'],
|
||||
'test':[
|
||||
'test/gtd_test.yml'
|
||||
#'test/gtd_test.yml',
|
||||
'test/timebox.yml'
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
-
|
||||
In order to set Daily tasks into Weekly Timebox, I create plan for that
|
||||
-
|
||||
!record {model: project.timebox.fill.plan, id: plan_id}:
|
||||
task_ids: [project.project_task_10]
|
||||
timebox_id: timebox_daily
|
||||
timebox_to_id: timebox_weekly
|
||||
-
|
||||
I run plan to set Daily tasks into Weekly Timebox
|
||||
-
|
||||
!python {model: project.timebox.fill.plan}: |
|
||||
self.process(cr, uid, [ref("plan_id")])
|
||||
-
|
||||
I check Weekly Timebox of task after set Timebox
|
||||
-
|
||||
!assert {model: project.task, id: project.project_task_10, string: Task should be set to weekly timebox}:
|
||||
- timebox_id.id == ref("timebox_weekly")
|
||||
-
|
||||
I Empty the Daily Timebox
|
||||
-
|
||||
!python {model: project.timebox.empty}: |
|
||||
self._empty(cr, uid, {"active_model": "project.gtd.timebox",
|
||||
"active_ids":[ref("timebox_daily")],
|
||||
"active_id": ref("timebox_daily"),
|
||||
})
|
||||
-
|
||||
I check task 'Develop time management module' is no more in Daily Timebox
|
||||
-
|
||||
!assert {model: project.task, id: project.project_task_10 , string: Task is not in Daily Timebox}:
|
||||
- timebox_id.id != ref("timebox_daily")
|
||||
-
|
||||
I set Previous Timebox on task
|
||||
-
|
||||
!python {model: project.task}: |
|
||||
self.prev_timebox(cr, uid, [ref("project.project_task_10")],
|
||||
{'active_ids': [ref("project.project_task_1")],})
|
||||
-
|
||||
I set Next Timebox on task
|
||||
-
|
||||
!python {model: project.task}: |
|
||||
self.next_timebox(cr, uid, [ref("project.project_task_10")],
|
||||
{'active_ids': [ref("project.project_task_1")],})
|
Loading…
Reference in New Issue