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