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.

10 lines
416 B

  1. from openerp import api, models, fields, SUPERUSER_ID
  2. class mail_compose_message(models.TransientModel):
  3. _inherit = 'mail.compose.message'
  4. def get_mail_values(self, cr, uid, wizard, res_ids, context=None):
  5. res = super(mail_compose_message, self).get_mail_values(cr, uid, wizard, res_ids, context)
  6. for id, d in res.iteritems():
  7. d['body'] = d.get('body') or ''
  8. return res