mail.thread :: Email Thread

mail_thread model is meant to be inherited by any model that needs to act as a discussion topic on which messages can be attached. Public methods are prefixed with ``message_`` in order to avoid name collisions with methods of the models that will inherit from this class. ``mail.thread`` defines fields used to handle and display the communication history. ``mail.thread`` also manages followers of inheriting classes. All features and expected behavior are managed by mail.thread. Widgets has been designed for the 7.0 and following versions of Odoo. Inheriting classes are not required to implement any method, as the default implementation will work for any model. However it is common to override at least the ``message_new`` and ``message_update`` methods (calling ``super``) to add model-specific behavior at creation and update of a thread when processing incoming emails. Options: - _mail_flat_thread: if set to True, all messages without parent_id are automatically attached to the first message posted on the resource. If set to False, the display of Chatter is done using threads, and no parent_id is automatically set. MailThread features can be somewhat controlled through context keys : - ``mail_create_nosubscribe``: at create or message_post, do not subscribe uid to the record thread - ``mail_create_nolog``: at create, do not log the automatic '<Document> created' message - ``mail_notrack``: at create and write, do not perform the value tracking creating messages - ``tracking_disable``: at create and write, perform no MailThread features (auto subscription, tracking, post, ...) - ``mail_notify_force_send``: if less than 50 email notifications to send, send them directly instead of using the queue; True by default

Fields

  • has_message [readonlyboolean]: Has Message

  • message_attachment_count [readonlyinteger]: Attachment Count

  • message_follower_ids [one2many: mail.followers]: Followers

  • message_has_error [readonlyboolean]: Message Delivery error

  • message_has_error_counter [readonlyinteger]: Number of errors

  • message_has_sms_error [readonlyboolean]: SMS Delivery error

  • message_ids [one2many: mail.message]: Messages

  • message_is_follower [readonlyboolean]: Is Follower

  • message_needaction [readonlyboolean]: Action Needed

  • message_needaction_counter [readonlyinteger]: Number of Actions

  • message_partner_ids [many2many: res.partner]: Followers (Partners)

  • rating_ids [one2many: rating.rating]: Ratings

  • website_message_ids [one2many: mail.message]: Website Messages