[IMP] project_task_line: make inline tree editable and update kanban states

H4497
This commit is contained in:
Connor Christian
2020-11-17 13:06:02 -05:00
committed by Jared Kipe
parent d7a0851197
commit 1ec36311c4
2 changed files with 8 additions and 8 deletions

View File

@@ -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):