From bffb6b96c7e15a0acef90ebb011aa24c6997ed80 Mon Sep 17 00:00:00 2001 From: "Sbh (OpenERP)" Date: Wed, 22 Dec 2010 10:23:53 +0530 Subject: [PATCH 1/2] [Fix] Sign in / Sign out by project is not available if the project module is not installed lp bug: https://launchpad.net/bugs/692971 fixed bzr revid: sbh@tinyerp.com-20101222045353-vqzmi0z3hoduifba --- .../hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml | 6 ------ addons/project_timesheet/project_timesheet_view.xml | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml index e9114e1fe3c..10136bb34ff 100644 --- a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml +++ b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out_view.xml @@ -51,12 +51,6 @@ Employees can encode their time spent on the different projects. A project is an analytic account and the time spent on a project generate costs on the analytic account. This feature allows to record at the same time the attendance and the timesheet. - - hr.sign.out.project.form hr.sign.out.project diff --git a/addons/project_timesheet/project_timesheet_view.xml b/addons/project_timesheet/project_timesheet_view.xml index d349292b997..b0a898dac3b 100644 --- a/addons/project_timesheet/project_timesheet_view.xml +++ b/addons/project_timesheet/project_timesheet_view.xml @@ -123,6 +123,11 @@ This lists show you every task work you can invoice to the customer. Select the lines in order to generate the invoices automatically. + From 15d4d88ee3ebab30d819cc835720b547567cfc98 Mon Sep 17 00:00:00 2001 From: "Sbh (OpenERP)" Date: Wed, 22 Dec 2010 10:29:58 +0530 Subject: [PATCH 2/2] [Fix] hr_timesheet: fix the yml bzr revid: sbh@tinyerp.com-20101222045958-br77qum40o3sblhl --- addons/hr_timesheet/test/test_hr_timesheet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hr_timesheet/test/test_hr_timesheet.yml b/addons/hr_timesheet/test/test_hr_timesheet.yml index 18d94edbed8..d472263150b 100644 --- a/addons/hr_timesheet/test/test_hr_timesheet.yml +++ b/addons/hr_timesheet/test/test_hr_timesheet.yml @@ -94,7 +94,7 @@ - !python {model: hr.sign.in.project}: | uid = ref('test_timesheet_user1') - self.check_state(cr, uid, [ref("hr_employee_fracline1")], {"active_ids": [ref("hr_timesheet.menu_hr_timesheet_sign_in")]}) + self.check_state(cr, uid, [ref("hr_employee_fracline1")], {"active_ids": [ref("hr_timesheet.action_hr_timesheet_sign_in")]}) - I select start date and Perform start work on project. - @@ -110,7 +110,7 @@ !python {model: hr.sign.in.project}: | uid = ref('test_timesheet_user1') ids = self.search(cr, uid, [('emp_id', '=', ref('hr_employee_fracline1')),('name', '=', 'Francline')]) - self.check_state(cr, uid, ids, {"active_ids": [ref("hr_timesheet.menu_hr_timesheet_sign_in")] + self.check_state(cr, uid, ids, {"active_ids": [ref("hr_timesheet.action_hr_timesheet_sign_in")] }) -