You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.1 KiB

  1. # -*- coding: utf-8 -*-
  2. # © 2015 Therp BV <http://therp.nl>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import fields, models
  5. class MailMessageSubtype(models.Model):
  6. _inherit = 'mail.message.subtype'
  7. custom_notification_mail = fields.Selection(
  8. [('force_yes', 'Force yes'), ('force_no', 'Force no')],
  9. string='Send mail notification', help='Leave empty to use the '
  10. 'on the partner\'s form, set to "Force yes" to always send messages '
  11. 'of this type via email, and "Force no" to never send messages of '
  12. 'type via email')
  13. custom_notification_own = fields.Boolean(
  14. 'Notify about own messages', help='Check this to have notifications '
  15. 'generated and sent via email about own messages')
  16. custom_notification_model_ids = fields.Many2many(
  17. 'ir.model', string='Models', help='Choose for which models the '
  18. 'custom configuration applies. This is only necessary if your subtype '
  19. 'doesn\'t set a model itself', domain=[('osv_memory', '=', False)])