From 0976a92076e10fca8392fc248efb55ca17221058 Mon Sep 17 00:00:00 2001 From: "Cedric Prieels (cpr)" Date: Tue, 7 Sep 2021 15:30:41 +0000 Subject: [PATCH] [FIX] poject,sale_timesheet: group by modified, hover lighten In this commit, the hover color of the elements in the right panel has been revised. Furthermore, we now group by task by default when using the billable time stat button task-2638359 closes #76167 closes odoo/odoo#76263 X-original-commit: a641d8e4820c4196d41e5f5b661ddef22f940477 Related: odoo/enterprise#20747 Signed-off-by: LTU-Odoo Signed-off-by: Xavier --- addons/project/static/src/scss/project_rightpanel.scss | 2 +- addons/sale_timesheet/models/project.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project/static/src/scss/project_rightpanel.scss b/addons/project/static/src/scss/project_rightpanel.scss index 75126215e29..63bdafadec3 100644 --- a/addons/project/static/src/scss/project_rightpanel.scss +++ b/addons/project/static/src/scss/project_rightpanel.scss @@ -72,7 +72,7 @@ html .o_web_client > .o_action_manager > .o_action > .o_content > .o_controller_ font-size: small; .o_rightpanel_data_row { &:hover { - background-color: $gray-200; + background-color: $gray-100; border-radius: 5px; } } diff --git a/addons/sale_timesheet/models/project.py b/addons/sale_timesheet/models/project.py index 3f971dd9fa3..e2141ffc076 100644 --- a/addons/sale_timesheet/models/project.py +++ b/addons/sale_timesheet/models/project.py @@ -264,7 +264,7 @@ class Project(models.Model): action = self.env["ir.actions.actions"]._for_xml_id("hr_timesheet.timesheet_action_all") action.update({ 'context': { - 'search_default_groupby_timesheet_invoice_type': True, + 'search_default_groupby_task': True, 'default_project_id': self.id, }, 'domain': [('project_id', '=', self.id)],