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
410 B
12 lines
410 B
# -*- coding: utf-8 -*-
|
|
from openerp import models
|
|
|
|
|
|
class MailComposeMessage(models.TransientModel):
|
|
_inherit = 'mail.compose.message'
|
|
|
|
def get_mail_values(self, cr, uid, wizard, res_ids, context=None):
|
|
res = super(MailComposeMessage, self).get_mail_values(cr, uid, wizard, res_ids, context)
|
|
for id, d in res.iteritems():
|
|
d['body'] = d.get('body') or ''
|
|
return res
|