[IMP] mail: message_unread searchable field now returns a domain. This domain is...
authorThibault Delavallée <tde@openerp.com>
Thu, 29 Nov 2012 14:42:53 +0000 (15:42 +0100)
committerThibault Delavallée <tde@openerp.com>
Thu, 29 Nov 2012 14:42:53 +0000 (15:42 +0100)
commit9f84bbddfb3abfc69cdb6b3dc126b7e2381cc452
tree99f0ae38cdc834588f43d25280d0c5d679ff8b0f
parentbb759994acf592dcfcac22b017b5c7413a5d88c6
[IMP] mail: message_unread searchable field now returns a domain. This domain is quite complex, because it bypasses limitations of the _auto_join feature used on message_ids. It should be: message_ids.read = False. However, it takes into account the one2many model, as well as to_read being a function field also searchable. Ths parsing is not capable to handle this kind of thing correctly now without using an ugly hack. Updated _search_to_read and _search_starred.

bzr revid: tde@openerp.com-20121129144253-i9e7m2kqjteq8ajr
addons/mail/mail_message.py
addons/mail/mail_thread.py
addons/mail/mail_thread_view.xml