Hi,
I had an error while sending email ,by clicking submit button I want to send my manager that I have submitted time sheet,I am using odoo 11
My code details :
mail_values = {
'email_from': self.employee_id.work_email,
'email_to': self.employee_id.parent_id.work_email,
'subject': 'Timesheet submitted ' + self.employee_id.name,
'body_html': 'Timesheets ' + self.date_start + ' to ' + self.date_end + ' had been submitted by '
+ self.employee_id.name + ' for your approval<br>Please <a href="http://http://localhost:8069/web#view_type=list&model=hr_timesheet.sheet&menu_id=615&action=797">click here</a> to approve or reject<br> Regards,<br>',
'notification': True,
}
mail = self.env['mail.mail'].create(mail_values)
mail.send()
and I got this error: