From f93e05405098573d128cdd074667bec4d4b6e5ca Mon Sep 17 00:00:00 2001 From: Barad Mahendra Date: Tue, 20 Apr 2021 13:30:12 +0000 Subject: [PATCH] [IMP] project: generic UX improvement for project configuration Purpose of the task is to do a generic UX improvement in project Specification: -------------- 1) Stages(project.task.type) * List view: - move the 'folded in kanban' field to the right of the project_ids one - remove the description field from the list view - make the list view editable in batch * Form view - rename 'stage name' into 'name' - move the sequence field below the 'rating email template' one - change the copy of the tooltips to: "At each stage, employees can block tasks or mark them as ready for the next step. You can customize here the labels for each state." - the tags should be colored according to the project's color - reduce the space in between the icons and the name of the states - add some space in between the legend_done field and the description - when creating a new mail template, set 'project.task' as model_id of the template * move the 'Stages' menu into below the 'Projects' one * add the project_ids field to the kanban view * search: rename 'Tasks Stages' into 'Name' 2) Tags(project.tags): - configuration > tags menu: change the helper to: "Tags are perfect for categorizing your tasks." - add an optional list view -> only the color field should be optional and displayed by default - new tags should be created at the top of the list - Also removed some of the unused(deprecated) css which are not applied anywhere in the project. closes odoo/odoo#69636 Taskid: 2508642 Related: odoo/enterprise#17865 Signed-off-by: LTU-Odoo --- addons/gamification/views/challenge.xml | 2 +- addons/project/models/project.py | 2 +- addons/project/static/src/css/project.css | 41 ------------ addons/project/views/project_views.xml | 81 ++++++++++++----------- 4 files changed, 46 insertions(+), 80 deletions(-) diff --git a/addons/gamification/views/challenge.xml b/addons/gamification/views/challenge.xml index 5b5931b64fe..a0876987ee1 100644 --- a/addons/gamification/views/challenge.xml +++ b/addons/gamification/views/challenge.xml @@ -148,7 +148,7 @@

-
+
Goals Goal diff --git a/addons/project/models/project.py b/addons/project/models/project.py index 9cb0c47efcf..a9bd42f907a 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -23,7 +23,7 @@ class ProjectTaskType(models.Model): return [default_project_id] if default_project_id else None active = fields.Boolean('Active', default=True) - name = fields.Char(string='Stage Name', required=True, translate=True) + name = fields.Char(string='Name', required=True, translate=True) description = fields.Text(translate=True) sequence = fields.Integer(default=1) project_ids = fields.Many2many('project.project', 'project_task_type_rel', 'type_id', 'project_id', string='Projects', diff --git a/addons/project/static/src/css/project.css b/addons/project/static/src/css/project.css index c0d1759e850..f0cd9383408 100644 --- a/addons/project/static/src/css/project.css +++ b/addons/project/static/src/css/project.css @@ -1,44 +1,3 @@ - -.oe_kanban_project_avatars img { - width: 30px; - border-radius: 2px; - -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); - -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); - -box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); -} -.oe_form_gantt_avatars:after { - font-family: "mnmliconsRegular" !important; - font-size: 21px; - font-weight: 300 !important; - content: "y"; - top: 3px; - position: relative; -} - -.openerp .oe_kanban_view .oe_kanban_project { - width: 250px; - min-height: 160px !important; - cursor: default; -} - -.openerp .oe_percent strong:after { - content: "%"; -} - -.openerp .oe_margin_top_8 { - margin-top: 8px; -} -.openerp .oe_kanban_project .oe_kanban_project_list .col-lg-6 a{ - margin-left: 5px; -} - -/* Kanban status as label in project stage form view */ -.openerp label.oe_project_kanban_legend { - min-width: inherit !important; - margin-top: 6px; - margin-right: 8px; -} - .o_form_project_tasks.o_form_editable .oe_title { max-width: initial; } diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index 53cd3d72dd2..0132842b9cd 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -77,7 +77,7 @@ project.task.type - + @@ -94,8 +94,9 @@ - - + + +
+
@@ -241,7 +248,7 @@ name="%(act_project_project_2_project_task_all)d" icon="fa-tasks"> -