From 3a5341506b6bbfbfa4df354829dd6ab263b49277 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Mon, 5 Dec 2016 12:07:29 +0530 Subject: [PATCH] [IMP] note: add an editable tree view for tags Also: - Don't display "Active -> True" when we create a note - Allow to create tags on the fly on a note form view When user create a new Note or click on 'Tick' option in kanban view, remove the message 'Active->True' & 'True->False' and Make the creation of 'Tags' inline mode. [IMP] note: 'Tags' should be created from note's form view. --- addons/note/models/note.py | 2 +- addons/note/views/note_views.xml | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/addons/note/models/note.py b/addons/note/models/note.py index 639a5675ef1..2861bb9d0ff 100644 --- a/addons/note/models/note.py +++ b/addons/note/models/note.py @@ -48,7 +48,7 @@ class Note(models.Model): inverse='_inverse_stage_id', string='Stage') stage_ids = fields.Many2many('note.stage', 'note_stage_rel', 'note_id', 'stage_id', string='Stages of Users', default=_get_default_stage_id) - open = fields.Boolean(string='Active', track_visibility='onchange', default=True) + open = fields.Boolean(string='Active', default=True) date_done = fields.Date('Date done') color = fields.Integer(string='Color Index') tag_ids = fields.Many2many('note.tag', 'note_tags_rel', 'note_id', 'tag_id', string='Tags') diff --git a/addons/note/views/note_views.xml b/addons/note/views/note_views.xml index 487856aa311..cc94f3df83f 100644 --- a/addons/note/views/note_views.xml +++ b/addons/note/views/note_views.xml @@ -49,11 +49,23 @@ + + + note.tag.tree + note.tag + + + + + + + Tags note.tag form + tree,form

Click to add a new tag. @@ -139,7 +151,7 @@ - +