From 09c90c3a5309cb1d666818da983d5a91616adb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 21 Feb 2014 11:28:23 +0100 Subject: [PATCH] [ADD] mail: mail_message_subtype: add a hidden field, to hide some subtypes from the followers widget. This will be used to hide the created subtype on the task or issues for example, while still available on the related project. The subtype on the task is necessary to trigger the various autosubscription and notification mechanisms but its display on task/issue is not. bzr revid: tde@openerp.com-20140221102823-ca1bvw3qi9kf61uq --- addons/mail/mail_message_subtype.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/mail/mail_message_subtype.py b/addons/mail/mail_message_subtype.py index a15cf1a79a7..941011934e8 100644 --- a/addons/mail/mail_message_subtype.py +++ b/addons/mail/mail_message_subtype.py @@ -51,8 +51,10 @@ class mail_message_subtype(osv.osv): 'default': fields.boolean('Default', help="Activated by default when subscribing."), 'sequence': fields.integer('Sequence', help="Used to order subtypes."), + 'hidden': fields.boolean('Hidden', help="Hide the subtype in the follower options") } _order = 'sequence' _defaults = { 'default': True, + 'sequence': 1, }