From ea038c6b199a9a0021079ccbbf5ad501c1e00404 Mon Sep 17 00:00:00 2001 From: "Cedric Prieels (cpr)" Date: Wed, 15 Sep 2021 08:27:51 +0000 Subject: [PATCH] [IMP] project: follow up the project overview removal The project overview is a significant technical debt as it is a custom qweb view. It is quite limited: It is not possible to group the data, to filter on dates, SOs or Field Service projects. Improving this is very difficult and would require weeks of development that are not worth it. In any case, all the information provided by the project overview can be found elsewhere. The stat buttons of the report are basically duplicates of the ones from the project form view. Therefore, we are removing this report and its twin, the Project Costs and Revenues. In addition, analytic items lack context for the user to understand what generated a certain cost or revenue: there is no link to the source document; the entries are not categorized (e.g. it is not easy to understand if a cost comes from a timesheet cost, a purchase order or an expense); the billable type group by works fine for timesheets but then all the other entries are flagged as Undefined, which is not very helpful; there is no option to easily isolate costs from revenues. task-2646234 See odoo/enterprise#20936 closes odoo/odoo#76553 Signed-off-by: Laurent Stukkens (ltu) --- .../account_sale_timesheet/models/project.py | 2 +- .../views/project_project_views.xml | 3 ++- addons/hr_timesheet/models/project.py | 2 +- addons/project/data/project_demo.xml | 17 ++++++++++++ addons/project/models/project.py | 10 +++---- addons/project/views/project_views.xml | 26 +++++++++---------- addons/project_hr_expense/models/project.py | 2 +- .../views/project_project_views.xml | 3 ++- addons/project_mrp/models/project.py | 6 ++--- addons/project_mrp/views/project_views.xml | 2 +- addons/project_purchase/models/project.py | 2 +- .../project_purchase/views/project_views.xml | 3 ++- addons/sale_project/models/project.py | 18 ++++++++++--- .../sale_project/views/project_task_views.xml | 6 +++-- addons/sale_project_account/models/project.py | 2 +- .../views/project_project_views.xml | 3 ++- addons/sale_timesheet/models/project.py | 10 +++++++ .../static/tests/tours/sale_timesheet_tour.js | 4 +-- .../views/project_task_views.xml | 6 +---- 19 files changed, 84 insertions(+), 43 deletions(-) diff --git a/addons/account_sale_timesheet/models/project.py b/addons/account_sale_timesheet/models/project.py index dbd50639865..a6b30730559 100644 --- a/addons/account_sale_timesheet/models/project.py +++ b/addons/account_sale_timesheet/models/project.py @@ -22,6 +22,6 @@ class Project(models.Model): 'action_type': 'object', 'action': 'action_open_project_invoices', 'show': bool(self.analytic_account_id) and self.invoice_count > 0, - 'sequence': 11, + 'sequence': 30, }) return buttons diff --git a/addons/account_sale_timesheet/views/project_project_views.xml b/addons/account_sale_timesheet/views/project_project_views.xml index 77a119d9b6a..bfeda30deae 100644 --- a/addons/account_sale_timesheet/views/project_project_views.xml +++ b/addons/account_sale_timesheet/views/project_project_views.xml @@ -5,8 +5,9 @@ project.project.form.inherit project.project + 50 - + - - + + - - -