mail.thread.phone :: Phone Blacklist Mixin

Purpose of this mixin is to offer two services * compute a sanitized phone number based on _phone_get_number_fields. It takes first sanitized value, trying each field returned by the method (see ``BaseModel._phone_get_number_fields()´´ for more details about the usage of this method); * compute blacklist state of records. It is based on phone.blacklist model and give an easy-to-use field and API to manipulate blacklisted records; Main API methods * ``_phone_set_blacklisted``: set recordset as blacklisted; * ``_phone_reset_blacklisted``: reactivate recordset (even if not blacklisted this method can be called safely);

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)

  • mobile_blacklisted [readonlyboolean]: Blacklisted Phone Is Mobile

  • phone_blacklisted [readonlyboolean]: Blacklisted Phone is Phone

  • phone_mobile_search [char]: Phone/Mobile

  • phone_sanitized [readonlychar]: Sanitized Number

  • phone_sanitized_blacklisted [readonlyboolean]: Phone Blacklisted

  • rating_ids [one2many: rating.rating]: Ratings

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