I trying to send an email to a partner while create a document. The message is creates but not sending to the partner. Below is my code.
*.py
@api.model
def create(self,vals):
result = super(HRHolidays,self).create(vals)
message_sent = result.message_post(message_type='notification', subtype='mt_comment', partner_ids=[25])