[imp]:few changes in ymls

bzr revid: pap@tinyerp.co.in-20100604122904-o8gf7d7dj89ljo1w
This commit is contained in:
pap (openerp) 2010-06-04 17:59:04 +05:30
parent 7ac215e587
commit f1feffec6a
5 changed files with 20 additions and 15 deletions

View File

@ -1,5 +1,5 @@
-
Test project template functionality
Test project template feature
-
Create project 'OpenERP Training Programme'
-
@ -145,7 +145,7 @@
name: Training on OpenERP modules, models and classes
user_id: base.user_root
-
Check for effective hours and remaining hours
Check for effective hours and remaining hours, effective_hours must be equal to 10
-
!assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After work task of 10 hours effective_hours must be equal to 10}:
- remaining_hours == 20
@ -162,7 +162,7 @@
name: Training on OpenERP xml views
user_id: base.user_root
-
Check for effective hours and remaining hours
Check for effective hours and remaining hours, effective_hours must be equal to 20
-
!assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After one more work task of 10 hours effective_hours must be equal to 20}:
- remaining_hours == 10
@ -179,7 +179,7 @@
name: Training on workflows
user_id: base.user_root
-
Check for effective hours and remaining hours
Check for effective hours and remaining hours, effective_hours must be equal to 30
-
!assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After one more work task of 10 hours effective_hours must be equal to 30}:
- remaining_hours == 0
@ -192,7 +192,7 @@
!record {model: config.compute.remaining, id: config_compute_remaining_0}:
remaining_hours: 10.0
-
Reevaluating the task
Reevaluate the task
-
!python {model: config.compute.remaining}: |
self.compute_hours(cr, uid, [ref("config_compute_remaining_0")], {"lang": "en_US",
@ -201,7 +201,7 @@
[ref("project_task_technicaltraining0")], "active_id": ref("project_task_technicaltraining0"), })
-
Check for effective hours and remaining hours
Check for effective hours and remaining hours, remaining_hours must be 10 while planned_hours remains 30
-
!assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After reevaluating the task with 10 hours remaining_hours must be 10 while planned_hours remains 30}:
- planned_hours == 30
@ -250,7 +250,7 @@
!record {model: config.compute.remaining, id: config_compute_remaining_1}:
remaining_hours: 10.0
-
Reevaluating the task with 10 hours remaining
Reevaluate the task with 10 hours remaining
-
!python {model: config.compute.remaining}: |
self.compute_hours(cr, uid, [ref("config_compute_remaining_1")], {"lang": "en_US",
@ -259,7 +259,7 @@
1, "search_default_current": 1, "active_ids": [ref("project_task_technicaltraining0")], "active_id": ref("project_task_technicaltraining0"),
})
-
Check for effective hours and remaining hours
Check for effective hours and remaining hours, remaining_hours must be 10 while planned_hours remains 30
-
!assert {model: project.task, id: project_task_technicaltraining0, severity: error, string: After reevaluating the task with 10 hours remaining_hours must be 10 while planned_hours remains 30}:
- planned_hours == 30

View File

@ -7,7 +7,12 @@
project_id: project.project_project_22
working_hours_close: 0.0
working_hours_open: 0.0
-
Check if issue in 'draft' state
-
!assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in draft state}:
- state == 'draft'
-
Open the issue
-

View File

@ -26,7 +26,7 @@
- state == "open"
-
Performing an osv_memory action action_cancel on module report_account_analytic.planning
Cancel the planning
-
!python {model: report_account_analytic.planning}: |
self.action_cancel(cr, uid, [ref("report_account_analytic_planning_projectplanning0")],
@ -41,7 +41,7 @@
- state == "cancel"
-
Performing an osv_memory action action_draft on module report_account_analytic.planning
Reopen the planning
-
!python {model: report_account_analytic.planning}: |
self.action_draft(cr, uid, [ref("report_account_analytic_planning_projectplanning0")],
@ -56,7 +56,7 @@
- state == "draft"
-
Performing an osv_memory action action_open on module report_account_analytic.planning
Open the planning
-
!python {model: report_account_analytic.planning}: |
self.action_open(cr, uid, [ref("report_account_analytic_planning_projectplanning0")],
@ -71,7 +71,7 @@
- state == "open"
-
Performing an osv_memory action action_done on module report_account_analytic.planning
Close the planning
-
!python {model: report_account_analytic.planning}: |
self.action_done(cr, uid, [ref("report_account_analytic_planning_projectplanning0")],

View File

@ -21,7 +21,7 @@
state: draft
-
Check if project.task deadline_date and start_date changes upon changing
Check if task deadline_date and start_date changes upon changing its project's end_date
-
!python {model: project.project}: |
from datetime import datetime, date

View File

@ -98,5 +98,5 @@
-
Check for timesheet_ids in hr manager's timesheet
-
!assert {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_sheetforhrmanager0, string: After hr manager's work task, len of timesheet line of current timesheet must be greater then 1}:
!assert {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_sheetforhrmanager0, string: After hr manager's work task, length of timesheet line of current timesheet must be greater then 1}:
- len(timesheet_ids) > 0