Search code examples
odooodoo-13

How to send email notifications for every log note of a record


I would like to implement a way to send an email notification (containing content of a log note) to all followers of a record for every log note of that record. I would also like to implement a way for email-replies to said email notifications to appear as log notes of that particular record.

What would I need to do to achieve this (at the back-end) or does Odoo already have a quick solution for this? I thought of creating a template, and overriding the _message_subscribe function to send its content as an email. Although I'm not sure how to go about linking email-replies back to the portal as log notes.


Solution

  • One of many solutions to this requirement is to set the mail subtype "Note" as default activated.

    Those subtypes can be configured on record follower base. So every User can have it's own subtype configurations.

    But to just set a default, this should easily work. I'm not a fan of the requirement at all, but atleast i'm a fan of the solution :-P

    Just go to Subtypes menu (Settings -> Technical -> Email -> Subtypes) search for "Note" and activate field "default"