From 75dd065eaa4670bcc6c742f3780e76e8134b83bf Mon Sep 17 00:00:00 2001 From: Dharmang Soni Date: Mon, 9 Apr 2018 11:35:00 +0200 Subject: [PATCH] [IMP] note: update note default columns Purpose is to have first column holding all todos and reminders. We then add a few columns for today / tomorrow / later to help people organize themselves. --- addons/note/data/note_data.xml | 36 +++++++++++++-------------------- addons/note/models/res_users.py | 2 +- 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/addons/note/data/note_data.xml b/addons/note/data/note_data.xml index 292dc9487b8..ead6e3578d2 100644 --- a/addons/note/data/note_data.xml +++ b/addons/note/data/note_data.xml @@ -1,36 +1,28 @@ - - + - New - - + Todo + + - Today - 1 - + Today + 1 + - This Week - 2 - + Tomorrow + 2 + - Later - 3 - + Later + 3 + - - - Notes - 4 - - - - + diff --git a/addons/note/models/res_users.py b/addons/note/models/res_users.py index 4cb4e3757c1..cfeba15922f 100644 --- a/addons/note/models/res_users.py +++ b/addons/note/models/res_users.py @@ -14,7 +14,7 @@ class Users(models.Model): user = super(Users, self).create(values) # for new employee, create his own 5 base note stages if user.has_group('base.group_user'): - for num in range(5): + for num in range(4): stage = self.env.ref('note.note_stage_%02d' % (num,), raise_if_not_found=False) if stage: stage.sudo().copy(default={'user_id': user.id})