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
12 lines
369 B
# -*- coding: utf-8 -*-
|
|
from openerp import fields, models
|
|
|
|
|
|
class MailComposer(models.TransientModel):
|
|
|
|
_inherit = 'mail.compose.message'
|
|
|
|
# This field is already in v10 onwards.
|
|
subtype_id = fields.Many2one(
|
|
default=lambda self: self.sudo().env.ref('mail.mt_comment',
|
|
raise_if_not_found=False).id)
|