I noticed that at the end of the view for Leave Request (example) there is a "Messages and communication history" box.
Below the code:
<div class="oe_chatter"> <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_ids" widget="mail_thread"/> </div>
I want to create a new custom module that whenever the button "Save" is clicked (the leave request is saved), it will add a message in 'oe_chatter' (chatterbox) saying that "New leave request has been created" (attached is the example message)
Kindly let me know if you have an idea. Thanks in advance! :)