Akhil Mathew
Akhil Mathew

Reputation: 1659

How to show message in admin account if the users do some operation in odoo

I am currently developing an odoo module to book meeting rooms.. If a user book a meeting room then an informative message or popup message with booking details should be send to the admin. Also this message shouldn't be viewed by user. How can i do this? Anyone knows any method, please share

Upvotes: 0

Views: 419

Answers (1)

Akhil Mathew
Akhil Mathew

Reputation: 1659

What i have done is..

Add mail dependency in openerp file.

'depends': ['base','mail']

Inherit [mail.thread] in models where you want to get the notifications.

_inherit = ['mail.thread']

Add these two fields in the form view of the corresponding model...

<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>  

Upvotes: 0

Related Questions