From 1ec282f8588e5f2e6deba7e50c9073c733ef77a1 Mon Sep 17 00:00:00 2001 From: Adesh Jolhe Date: Mon, 9 Jan 2023 12:40:03 +0000 Subject: [PATCH] [IMP] project_timesheet_holidays, _*: bring ux improvements for project and timesheet app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *_= project, sale_timesheet, The purpose of this commit is to improve the UX of the project and timesheet app So in this commit done following changes: - In the timesheet time off form view changes the label from timesheet to timesheets - In the timesheet list view added a 'no_open' option on the SOL field to make not be clickable - In project form view removed the 'quick' create option from the user_id field - In project task form view added a 'no_open' option on the SOL field to make not be clickable - Color of the Gantt and calendar views in project app My Tasks: the color used should be according to the personal stage set on the task. All tasks: the color used should be according to the project set on the task. When the user clicks on a project in the main view of Project app: the color used should be according to the stage. task-3125942 closes odoo/odoo#111688 Related: odoo/enterprise#36615 Signed-off-by: Xavier Bol (xbo) --- addons/project/models/project_task.py | 1 - addons/project/views/project_project_views.xml | 2 +- addons/project/views/project_task_views.xml | 4 ++-- addons/project_timesheet_holidays/views/hr_holidays_views.xml | 2 +- addons/sale_timesheet/views/hr_timesheet_views.xml | 2 +- addons/sale_timesheet/views/project_task_views.xml | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/addons/project/models/project_task.py b/addons/project/models/project_task.py index 50b93ffb7f1..758fdab1334 100644 --- a/addons/project/models/project_task.py +++ b/addons/project/models/project_task.py @@ -182,7 +182,6 @@ class Task(models.Model): 'res.company', string='Company', compute='_compute_company_id', store=True, readonly=False, recursive=True, required=True, copy=True, default=_default_company_id) color = fields.Integer(string='Color Index') - project_color = fields.Integer(related='project_id.color', string='Project Color') rating_active = fields.Boolean(string='Project Rating Status', related="project_id.rating_active") attachment_ids = fields.One2many('ir.attachment', compute='_compute_attachment_ids', string="Main Attachments", help="Attachments that don't come from a message.") diff --git a/addons/project/views/project_project_views.xml b/addons/project/views/project_project_views.xml index 8e6e3ebc939..74258ff1913 100644 --- a/addons/project/views/project_project_views.xml +++ b/addons/project/views/project_project_views.xml @@ -67,7 +67,7 @@ - +