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.

12 lines
369 B

  1. # -*- coding: utf-8 -*-
  2. from openerp import fields, models
  3. class MailComposer(models.TransientModel):
  4. _inherit = 'mail.compose.message'
  5. # This field is already in v10 onwards.
  6. subtype_id = fields.Many2one(
  7. default=lambda self: self.sudo().env.ref('mail.mt_comment',
  8. raise_if_not_found=False).id)