[IMP] mail.message: added a child_ids relationship on message, linked to parent_id. It will allow to know the number of messages present in a thread, for a better user experience about more buttons.
bzr revid: tde@openerp.com-20120404112128-jzc9cogti4ip2glu
This commit is contained in:
parent
8ecf415ee2
commit
01a03e10ca
|
@ -123,6 +123,7 @@ class mail_message_common(osv.osv_memory):
|
|||
help="Content of the message. This content equals the body_text field for plain-test messages, and body_html for rich-text/HTML messages. This allows having one field if we want to access the content matching the message subtype."),
|
||||
'parent_id': fields.many2one('mail.message', 'Parent message', help="Parent message, used for displaying as threads with hierarchy",
|
||||
select=True, ondelete='set null',),
|
||||
'child_ids': fields.one2many('mail.message', 'parent_id', 'Child messages'),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
|
|
Loading…
Reference in New Issue