Odoo Help

0
1 Answer
0
Avatar

Mitul Shingala

--Mitul Shingala--

1798
| 5 2 7
Rajkot, India
--Mitul Shingala--

Odoo Developer

Mitul Shingala
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,
                })
Ask a Question
Writer
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

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

Test it now