Hi, i have implemented email functionality for modules when event is triggered, right now am trying to push mails to mails pool , after that i need to send mails from spool , is there any concept of pushing mails to spool in odoo framework ??, can any one tell me where can i find it
HI Axel Thanks for response,
i got this by
'subject': 'Leave Status',
'body_html': 'HI %s'% employeeName +'
Leave Type: %s' % statusName + '
No.of days: %s'%record.number_of_days_temp+'
The status of the leave you''ve applied for the period %s'% record.date_from+'TO %s' %record.date_to +'has been changed to %s'% record.state , 'auto_delete': True, 'type': 'email', }
mail_obj = self.pool.get('mail.mail')
msg_id = mail_obj.create(cr, uid,mail_values, context=context)
msg_obj = self.pool.get('mail.message')
msg_obj.create(cr, uid, mail_values)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/8/15, 1:23 AM|
|Seen: 427 times|
|Last updated: 10/17/15, 4:46 AM|