diff --git a/addons/project/data/web_planner_data.xml b/addons/project/data/web_planner_data.xml index e40819c3198dd7bd7bebd76e9844c1040b01c880..9e3f0d630563645f16f418bb2707458d0de3d31c 100644 --- a/addons/project/data/web_planner_data.xml +++ b/addons/project/data/web_planner_data.xml @@ -476,8 +476,8 @@ </div> <div class="panel-body"> <li>For employees, the - <a t-if="is_module_installed('hr_timesheet_sheet')" t-attf-href="web#view_type=form&model=hr_timesheet_sheet.sheet&menu_id=#{timesheet_menu and timesheet_menu.id}">Current Timesheet</a> - <a t-if="not is_module_installed('hr_timesheet_sheet')" t-att-href="prepare_backend_url('base.open_module_tree', 'form', 'hr_timesheet_sheet')">Current Timesheet</a> + <a t-if="is_module_installed('hr_timesheet')" t-attf-href="web#menu_id=#{timesheet_menu and timesheet_menu.id}">Current Timesheet</a> + <a t-if="not is_module_installed('hr_timesheet')" t-att-href="prepare_backend_url('base.open_module_tree', 'form', 'hr_timesheet')">Current Timesheet</a> view of the HR module is the main tool to check, modify and confirm Timesheets.</li><br/> <li>Alternatively, Timesheets can be added directly from Tasks by activating <strong>'Log work activities on tasks'</strong> in the <a t-att-href="prepare_backend_url('project.action_config_settings')">Project Settings</a>.</li><br/> <li>Or, if you are using Issues, by activating 'Activate timesheets on issues', also in the <a t-att-href="prepare_backend_url('project.action_config_settings')">Project Settings</a>.</li> @@ -526,21 +526,6 @@ </div> </div> </div> - <h3><strong>Approve your Timesheets</strong> (every week)</h3> - <p> - At the end of the week, each employee should review - their entries for the week and makes sure the - entries are correctly encoded. This can be done - from the - <a t-if="is_module_installed('hr_timesheet_sheet')" t-attf-href="web#view_type=form&model=hr_timesheet_sheet.sheet&menu_id=#{timesheet_menu and timesheet_menu.id}">Current Timesheet</a> - <a t-if="not is_module_installed('hr_timesheet_sheet')" t-att-href="prepare_backend_url('base.open_module_tree', 'form', 'hr_timesheet_sheet')">Current Timesheet</a> - view of the Human Resources module. - </p><p> - Once a Timesheet is confirmed by an employee, it needs to be Approved by a manager in the - <a t-if="is_module_installed('hr_timesheet_sheet')" t-att-href="prepare_backend_url('hr_timesheet_sheet.act_hr_timesheet_sheet_form')">Timesheets to Approve</a> - <a t-if="not is_module_installed('hr_timesheet_sheet')" t-att-href="prepare_backend_url('base.open_module_tree', 'form', 'hr_timesheet_sheet')">Timesheets to Approve</a> - view. - </p> <h3><strong>Invoice your customers</strong> (every month)</h3> <p> If you work on a Time & Material project, you'll probably want to extract a Timesheet of the tasks and issues to invoice directly to the customer. To do that: diff --git a/addons/project/models/web_planner.py b/addons/project/models/web_planner.py index ae8b43efc561748c07dcdf1de66e5e2a375b27e0..ed10092b4df131fc107111bd7a6e9aa12d4d7149 100644 --- a/addons/project/models/web_planner.py +++ b/addons/project/models/web_planner.py @@ -15,5 +15,5 @@ class PlannerProject(models.Model): def _prepare_planner_project_data(self): return { - 'timesheet_menu': self.env.ref('hr_timesheet_sheet.menu_act_hr_timesheet_sheet_form_my_current', raise_if_not_found=False), + 'timesheet_menu': self.env.ref('hr_timesheet.timesheet_menu_root', raise_if_not_found=False), }