diff options
| author | atp (Open ERP) <atp@tinyerp.co.in> | 2010-06-22 10:45:44 +0530 |
|---|---|---|
| committer | atp (Open ERP) <atp@tinyerp.co.in> | 2010-06-22 10:45:44 +0530 |
| commit | b0efd26edd9f4e2aa75424b787ea46d2be15cd04 (patch) | |
| tree | e78cdb693e62a5c9a17f77a395eec51fb34becbf /addons/project_issue/test/convert_issue_to_task.yml | |
| parent | 46bb1ea51be702758d68a5f69db32c82dbccf9bd (diff) | |
| parent | 2319190c5a20cb8095f85cacca89a33164ba93d7 (diff) | |
[MERGE]: merge with lp:~openerp-dev/openobject-addons/trunk-dev-addons2
bzr revid: atp@tinyerp.co.in-20100622051544-c7hig73zk2at66cy
Diffstat (limited to 'addons/project_issue/test/convert_issue_to_task.yml')
| -rw-r--r-- | addons/project_issue/test/convert_issue_to_task.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/addons/project_issue/test/convert_issue_to_task.yml b/addons/project_issue/test/convert_issue_to_task.yml new file mode 100644 index 00000000000..13ddef69251 --- /dev/null +++ b/addons/project_issue/test/convert_issue_to_task.yml @@ -0,0 +1,32 @@ +- + Create an issue +- + !record {model: project.issue, id: project_issue_onchangeevent0}: + categ_id: project_issue.bug_categ + name: on_change event does not pass context to the method + project_id: project.project_project_22 + working_hours_close: 0.0 + working_hours_open: 0.0 + +- + Check there is no task attached to issue +- + !assert {model: project.issue, id: project_issue_onchangeevent0, string: There must not be any task attached to issue}: + - task_id.id == False + +- + Convert issue to task +- + !python {model: project.issue}: | + self.convert_issue_task(cr, uid, [ref("project_issue_onchangeevent0")], + {"lang": "en_US", "project_id": False, "tz": False, "active_model": "ir.ui.menu", + "department_id": False, "section_id": False, "search_default_project_id": + False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs": + 1, "active_ids": [ref("project_issue.menu_project_issue_track")], "active_id": + ref("project_issue.menu_project_issue_track"), }) + +- + Check there is a task attached to issue +- + !assert {model: project.issue, id: project_issue_onchangeevent0, string: After creating a task for the issue there must be a task attached to it}: + - task_id.id != False |
