diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-11-29 12:30:25 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-11-29 12:30:25 +0100 |
| commit | a123d95dcadfdceeddf1f9cb91629b61c0dd1c09 (patch) | |
| tree | 26476000d3b06e45a4ff387e0d1907e4123a05e5 /addons/mail/mail_thread_view.xml | |
| parent | b4e8416486b32b6e5e6d15c36e5652db9abece49 (diff) | |
[IMP] mail_message: star feature is now on mail.notification. A starred message has a notification with starred=True. favorite_user_ids many2many field disappear. _search_to_read and _search_starred replaced by returning a domain on the notifications. Using auto_join, this should speedup chatter a lot. Updated tests accordingly (should be updated a bit more than that, though). Updated JS. Updated mailboxes domains, as to_read and starred already contain a reference to the pid.
bzr revid: tde@openerp.com-20121129113025-rizon3eaf14vrla2
Diffstat (limited to 'addons/mail/mail_thread_view.xml')
| -rw-r--r-- | addons/mail/mail_thread_view.xml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/addons/mail/mail_thread_view.xml b/addons/mail/mail_thread_view.xml index a232aa12642..fedcef36fda 100644 --- a/addons/mail/mail_thread_view.xml +++ b/addons/mail/mail_thread_view.xml @@ -11,9 +11,8 @@ }</field> <field name="params" eval=""{ 'domain': [ - ('notification_ids.partner_id.user_ids', 'in', [uid]), - ('to_read', '=', True), - ('favorite_user_ids', 'not in', [uid]) + ('to_read', '=', False), + ('starred', '=', False), ], 'view_mailbox': True, 'view_inbox': True, @@ -40,7 +39,9 @@ 'search_default_message_unread': True }</field> <field name="params" eval=""{ - 'domain': [('partner_ids.user_ids', 'in', [uid])], + 'domain': [ + ('partner_ids.user_ids', 'in', [uid]) + ], 'view_mailbox': True, 'read_action': 'read', }""/> <field name="help" type="html"> @@ -62,7 +63,9 @@ 'search_default_message_unread': True }</field> <field name="params" eval=""{ - 'domain': [('favorite_user_ids', 'in', [uid])], + 'domain': [ + ('starred', '=', True), + ], 'view_mailbox': True, 'read_action': 'read', }""/> <field name="help" type="html"> @@ -83,7 +86,11 @@ 'default_res_id': uid }</field> <field name="params" eval=""{ - 'domain': ['|', ('notification_ids.partner_id.user_ids', 'in', [uid]), ('author_id.user_ids', 'in', [uid])], + 'domain': [ + '|', + ('notification_ids.partner_id.user_ids', 'in', [uid]), + ('author_id.user_ids', 'in', [uid]), + ], 'view_mailbox': True, }""/> <field name="help" type="html"> <p> |
