Odoo Help

0
0
Mitul Shingala
On 12/6/18, 8:57 AM

hello 

for send  the notification you can do like that in your method.

        self.env['mail.message'].create({'message_type':"notification",
                "subtype": self.env.ref("mail.mt_comment").id, # subject type
                'body': "Message body",
                'subject': "Message subject",
                'needaction_partner_ids': [(4, self.user_id.partner_id.id)], # partner to whom you send notification
                'model': self._name,
                'res_id': self.id,
                })

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 12/6/18, 7:29 AM
Seen: 96 times
Last updated: 12/6/18, 8:57 AM