From 8245f25e93a69562ccd2739f717a6ca81d2722a3 Mon Sep 17 00:00:00 2001 From: Connor Christian Date: Tue, 17 Nov 2020 13:06:02 -0500 Subject: [PATCH] [IMP] project_task_line: make inline tree editable and update kanban states H4497 --- project_task_line/models/project.py | 12 ++++++------ project_task_line/views/project_views.xml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/project_task_line/models/project.py b/project_task_line/models/project.py index 0d0f4ab7..3305de57 100644 --- a/project_task_line/models/project.py +++ b/project_task_line/models/project.py @@ -27,14 +27,14 @@ class ProjectTaskLine(models.Model): user_id = fields.Many2one('res.users', string='User') sequence = fields.Integer(string='Sequence') kanban_state = fields.Selection([ - ('normal', 'Grey'), - ('done', 'Green'), - ('blocked', 'Red')], string='Kanban State', + ('normal', ''), + ('done', 'Done'), + ('blocked', 'Blocked')], string='State', copy=False, default='normal', required=True, help="A task's kanban state indicates special situations affecting it:\n" - " * Grey is the default situation\n" - " * Red indicates something is preventing the progress of this task\n" - " * Green indicates the task is complete") + " * Blank is the default situation\n" + " * Blocked indicates something is preventing the progress of this task\n" + " * Doen indicates the task is complete") @api.onchange('kanban_state') def _onchange_kanban_state(self): diff --git a/project_task_line/views/project_views.xml b/project_task_line/views/project_views.xml index 81bdf9a5..bf255704 100644 --- a/project_task_line/views/project_views.xml +++ b/project_task_line/views/project_views.xml @@ -14,10 +14,10 @@ - + - +