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.
 
 
 
 

15 lines
510 B

from odoo import api, fields, models
class MailComposeMessage(models.TransientModel):
_inherit = 'mail.compose.message'
@api.multi
def get_mail_values(self, res_ids):
"""Generate the values that will be used by send_mail to create mail_messages
or mail_mails. """
results = super(MailComposeMessage, self).get_mail_values(res_ids)
for res_id in res_ids:
results[res_id]['mail_activity_type_id'] = self.mail_activity_type_id.id
return results