Manifest Academy

Home › Curriculum › Odoo Developer › mail.thread, activities, tracking and notifications

Business logic and automation · 12 min · 17–20

mail.thread, activities, tracking and notifications

Adding the chatter to models, tracking fields, posting messages, scheduling activities, followers and templates from code.

In this lesson

Key points

Real-world example

Credit releases needed an audit trail. Adding mail.thread with tracking on state and amount, posting a note with the approver's comment, and scheduling an activity for the salesperson on approval gave auditors the full history on each record.

Questions and answers

What does mail.activity.mixin add?

Activities (scheduled tasks) on the model.

How do you send a template from code?

message_post_with_source(template) or the template's send_mail(res_id).

Read the full lesson, worked example and quiz