diff options
| author | Harry (OpenERP) <hmo@tinyerp.com> | 2011-12-14 13:30:24 +0530 |
|---|---|---|
| committer | Harry (OpenERP) <hmo@tinyerp.com> | 2011-12-14 13:30:24 +0530 |
| commit | 0bcd3eb6a323db5e9b21bb39749c19c56c456983 (patch) | |
| tree | 7cc03e8326cf293e743dafaa20e73e10d9dd64b3 /addons/project_long_term/test | |
| parent | 16aaeb6812009982a34f974faea2db449efad6c5 (diff) | |
| parent | 3ad3baefbadf1f31347e994fccf4470608cbf5ba (diff) | |
[MERGE] merged with trunk-development-branch
bzr revid: hmo@tinyerp.com-20111214080024-wxk6ghn7nvusj2ep
Diffstat (limited to 'addons/project_long_term/test')
| -rw-r--r-- | addons/project_long_term/test/task_process.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/addons/project_long_term/test/task_process.yml b/addons/project_long_term/test/task_process.yml new file mode 100644 index 00000000000..64ecef73476 --- /dev/null +++ b/addons/project_long_term/test/task_process.yml @@ -0,0 +1,19 @@ +- + I create a record to compute the tasks of project. +- + !record {model: project.compute.tasks, id: project_compute_tasks0}: + project_id: project.project_integrate_openerp +- + I compute and shedule the tasks. +- + !python {model: project.compute.tasks}: | + self.compute_date(cr, uid, [ref("project_compute_tasks0")]) +- + Check if tasks scheduled, check that either of task's start_date, end_date and user_id is not null +- + !python {model: project.project}: | + prj = self.browse(cr, uid, [ref("project.project_integrate_openerp")])[0] + for task in prj.tasks: + if task.state in ('done','cancelled'): + continue + assert task.user_id and task.date_start and task.date_end, "Project tasks not scheduled" |
