From 224f69c104e472fa0c9b714addc2353e1a543eb0 Mon Sep 17 00:00:00 2001 From: Laetitia Da Costa Date: Thu, 13 Mar 2025 11:31:53 +0100 Subject: [PATCH] [IMP]project_working_time_task_portal:display billable hours only in project task portal --- project_working_time_task_portal/README.rst | 4 ++-- .../__manifest__.py | 8 ++++--- project_working_time_task_portal/i18n/fr.po | 4 ++++ .../views/hr_timesheet_portal.xml | 19 ++++++----------- .../views/portal_tasks_list.xml | 21 +++++++++++++++++++ 5 files changed, 38 insertions(+), 18 deletions(-) create mode 100644 project_working_time_task_portal/views/portal_tasks_list.xml diff --git a/project_working_time_task_portal/README.rst b/project_working_time_task_portal/README.rst index b1c3f89..8dcc117 100644 --- a/project_working_time_task_portal/README.rst +++ b/project_working_time_task_portal/README.rst @@ -1,6 +1,6 @@ -=============== +================================ project_working_time_task_portal -=============== +================================ add billable planned hours and billable remaining hours in the task portal view so the portal user only see billable timesheet lines diff --git a/project_working_time_task_portal/__manifest__.py b/project_working_time_task_portal/__manifest__.py index 4db17e5..65172ae 100644 --- a/project_working_time_task_portal/__manifest__.py +++ b/project_working_time_task_portal/__manifest__.py @@ -3,7 +3,7 @@ { "name": "project_working_time_task_portal", - "version": "16.0.1.0.0", + "version": "16.0.1.0.1", "author": "Elabore", "website": "https://elabore.coop", "maintainer": "Boris Gallet", @@ -14,7 +14,8 @@ "depends": [ "base", "project", - "sale_timesheet_line_exclude" + "sale_timesheet_line_exclude", + "hr_timesheet", ], "qweb": [], "external_dependencies": { @@ -23,7 +24,8 @@ # always loaded "data": [ "views/hr_timesheet_portal.xml", - "views/hr_timesheet_view_task_form2.xml" + "views/hr_timesheet_view_task_form2.xml", + "views/portal_tasks_list.xml" ], "assets": { "web.assets_frontend": [ diff --git a/project_working_time_task_portal/i18n/fr.po b/project_working_time_task_portal/i18n/fr.po index a6c8b5d..1389982 100644 --- a/project_working_time_task_portal/i18n/fr.po +++ b/project_working_time_task_portal/i18n/fr.po @@ -40,6 +40,10 @@ msgstr "Heures restantes:" #: model_terms:ir.ui.view,arch_db:project_working_time_task_portal.project_working_time_view_task_form msgid "Billable Remaining Hours" msgstr "Heures restantes facturables" +#. module: project_working_time_task_portal +#: model_terms:ir.ui.view,arch_db:project_working_time_task_portal.portal_tasks_list_inherit +msgid "Billable Hours" +msgstr "Heures facturables" #. module: project_working_time_task_portal #: model_terms:ir.ui.view,arch_db:project_working_time_task_portal.project_working_time_view_task_form diff --git a/project_working_time_task_portal/views/hr_timesheet_portal.xml b/project_working_time_task_portal/views/hr_timesheet_portal.xml index e5e372f..7a0e0cd 100644 --- a/project_working_time_task_portal/views/hr_timesheet_portal.xml +++ b/project_working_time_task_portal/views/hr_timesheet_portal.xml @@ -27,24 +27,17 @@ diff --git a/project_working_time_task_portal/views/portal_tasks_list.xml b/project_working_time_task_portal/views/portal_tasks_list.xml new file mode 100644 index 0000000..dad4af9 --- /dev/null +++ b/project_working_time_task_portal/views/portal_tasks_list.xml @@ -0,0 +1,21 @@ + + + + \ No newline at end of file