From b18b2b760349ea0035ec393e32a82cf8c6a92771 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 22 Dec 2011 14:48:15 +0100 Subject: [PATCH] [IMP] project: use same user ids as in hr bzr revid: rco@openerp.com-20111222134815-pshxwf6u7wfw55t4 --- addons/project/project_demo.xml | 102 +++++++++--------- addons/project/test/task_process.yml | 2 +- .../project_planning_demo.xml | 10 +- addons/project_scrum/test/sprint_process.yml | 4 +- .../project_timesheet_demo.xml | 14 +-- .../project_timesheet/test/work_timesheet.yml | 4 +- 6 files changed, 68 insertions(+), 68 deletions(-) diff --git a/addons/project/project_demo.xml b/addons/project/project_demo.xml index 26993452494..dab7e235671 100644 --- a/addons/project/project_demo.xml +++ b/addons/project/project_demo.xml @@ -7,47 +7,47 @@ - - Phuong + + Nicolas - phu - phu + niv + niv - - Anthony + + Antony - ale - ale + al + al - + Quentin - qdpa - qdpa + qdp + qdp - + Francois - fpie - fpie + fpi + fpi - + Julien - jthe - jthe + jth + jth - - Aline + + Minh - apre - apre + mit + mit - - Fabian + + Valérie - fbs - fbs + vad + vad @@ -57,14 +57,14 @@ normal Integrate a Sale and Warehouse Management. - + ref('base.user_niv'), + ref('base.user_al'), + ref('base.user_qdp'), + ref('base.user_fpi'), + ref('base.user_jth'), + ref('base.user_mit'), + ref('base.user_vad')])]" name="members"/> + Integrate a Sale and Warehouse Management. @@ -72,7 +72,7 @@ - + 2 Prepare Requirements Document @@ -82,7 +82,7 @@ - + 2 Make SRS @@ -91,7 +91,7 @@ - + 2 Design Use Cases @@ -101,7 +101,7 @@ - + 2 Budget Planning @@ -113,7 +113,7 @@ - + 2 Quality Planning @@ -125,7 +125,7 @@ - + 2 Risk Management Planning @@ -134,7 +134,7 @@ - + 2 Create Project Schedules @@ -143,7 +143,7 @@ - + 2 Dataflow Design @@ -153,7 +153,7 @@ - + 2 User Interface Design @@ -162,7 +162,7 @@ - + 2 Develop Module in Sale Management @@ -172,7 +172,7 @@ - + 2 Develop module in Warehouse @@ -183,7 +183,7 @@ - + 2 Integrate Modules @@ -194,7 +194,7 @@ - + 2 Unit Testing @@ -205,7 +205,7 @@ - + 2 Regression Test @@ -215,7 +215,7 @@ - + 2 Documentation @@ -226,7 +226,7 @@ - + 2 Performance Tuning @@ -237,7 +237,7 @@ - + 2 Deploy and Review on Customer System @@ -247,7 +247,7 @@ - + 2 Training and Presentation diff --git a/addons/project/test/task_process.yml b/addons/project/test/task_process.yml index 73250de2963..c4d17f783f6 100644 --- a/addons/project/test/task_process.yml +++ b/addons/project/test/task_process.yml @@ -11,7 +11,7 @@ - state == "pending" - !record {model: project.task.delegate, id: delegate_id}: - user_id: res_users_analyst + user_id: base.user_niv planned_hours: 12.0 planned_hours_me: 2.0 - diff --git a/addons/project_planning/project_planning_demo.xml b/addons/project_planning/project_planning_demo.xml index f1b7e288734..4abf8786378 100644 --- a/addons/project_planning/project_planning_demo.xml +++ b/addons/project_planning/project_planning_demo.xml @@ -10,7 +10,7 @@ open - + @@ -19,7 +19,7 @@ 16.0 - + @@ -29,7 +29,7 @@ 24.0 - + @@ -39,7 +39,7 @@ 90.0 - + @@ -49,7 +49,7 @@ 50.0 - + diff --git a/addons/project_scrum/test/sprint_process.yml b/addons/project_scrum/test/sprint_process.yml index 8c8f70b1188..c731daf4ad5 100644 --- a/addons/project_scrum/test/sprint_process.yml +++ b/addons/project_scrum/test/sprint_process.yml @@ -34,7 +34,7 @@ I create tasks from backlog "Automatic migration system" for sprint - !python {model: project.scrum.backlog.create.task}: | - new_id = self.create(cr, uid, {'user_id': ref("project.res_users_project_manager")}) + new_id = self.create(cr, uid, {'user_id': ref("base.user_al")}) task_obj = self.pool.get('project.task') backlog_obj = self.pool.get('project.scrum.product.backlog') @@ -44,7 +44,7 @@ assert len(task_ids), "Task not created" task = task_obj.browse(cr, uid, task_ids[0], context) - assert task.name == backlog_data.name and task.total_hours == backlog_data.expected_hours and task.user_id and task.user_id.id == ref("project.res_users_project_manager"), 'Task not has been created' + assert task.name == backlog_data.name and task.total_hours == backlog_data.expected_hours and task.user_id and task.user_id.id == ref("base.user_al"), 'Task not has been created' - I send email to scrum master with scrum meeting details. - diff --git a/addons/project_timesheet/project_timesheet_demo.xml b/addons/project_timesheet/project_timesheet_demo.xml index 1b9c2e5897b..8b965f5229c 100644 --- a/addons/project_timesheet/project_timesheet_demo.xml +++ b/addons/project_timesheet/project_timesheet_demo.xml @@ -3,13 +3,13 @@ - + - + @@ -17,7 +17,7 @@ Phuong - + @@ -26,7 +26,7 @@ Francois - + @@ -34,7 +34,7 @@ Julien - + @@ -42,7 +42,7 @@ Alien - + @@ -50,7 +50,7 @@ Fabian - + diff --git a/addons/project_timesheet/test/work_timesheet.yml b/addons/project_timesheet/test/work_timesheet.yml index d9c1212c022..fe487729f81 100644 --- a/addons/project_timesheet/test/work_timesheet.yml +++ b/addons/project_timesheet/test/work_timesheet.yml @@ -6,7 +6,7 @@ name: Test Timesheet records task_id: project.project_task_1 hours: 20.0 - user_id: project.res_users_analyst + user_id: base.user_niv company_id: base.main_company - I check Timesheet line for employee in current Timesheet @@ -16,6 +16,6 @@ start = (datetime.date.today().strftime('%Y-%m-%d')) task_work = self.search(cr, uid, [("name","=","Prepare Requirements Document: Test Timesheet records")],context)[0] task_ids = self.browse(cr, uid, task_work, context) - assert task_ids.user_id.id == ref("project.res_users_analyst"), 'Error, The User in Timesheet is not Correct' + assert task_ids.user_id.id == ref("base.user_niv"), 'Error, The User in Timesheet is not Correct' assert task_ids.date == start, 'Error, The Date in Timesheet is not ok' assert task_ids.product_uom_id.name == "Hour", 'Error, The Hour in Timesheet is not ok'