1 # -*- coding: utf-8 -*-
2 ##############################################################################
4 # OpenERP, Open Source Management Solution
5 # Copyright (C) 2012-today OpenERP SA (<http://www.openerp.com>)
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Affero General Public License as
9 # published by the Free Software Foundation, either version 3 of the
10 # License, or (at your option) any later version
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU Affero General Public License for more details
17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>
20 ##############################################################################
23 from osv import fields
26 class mail_message_subtype(osv.osv):
27 """ Class holding subtype definition for messages. Subtypes allow to tune
28 the follower subscription, allowing only some subtypes to be pushed
30 _name = 'mail.message.subtype'
31 _description = 'mail_message_subtype'
33 'name': fields.char('Message Type', required=True, translate=True,
34 help='Message subtype gives a more precise type on the message, '\
35 'especially for system notifications. For example, it can be '\
36 'a notification related to a new record (New), or to a stage '\
37 'change in a process (Stage change). Message subtypes allow to '\
38 'precisely tune the notifications the user want to receive on its wall.'),
39 'res_model': fields.char('Model',
40 help="Related model of the subtype. If False, this subtype exists for all models."),
41 'default': fields.boolean('Default',
42 help="Checked by default when subscribing."),