[MERGE] [FIX] mail_group: usability fix. The 'Wall view' of
mail groups now displays all messages (removed 'Unread' filter). It also displays a composition box, not 'Send a message or Log a note' as the purpose of a mail.group is to share with other members. bzr revid: tde@openerp.com-20130327110520-nja6273v5ozdt49j
This commit is contained in:
commit
07099455fc
|
@ -144,11 +144,19 @@ class mail_group(osv.Model):
|
|||
search_ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'mail', 'view_message_search')
|
||||
params = {
|
||||
'search_view_id': search_ref and search_ref[1] or False,
|
||||
'domain': [('model', '=', 'mail.group'), ('res_id', '=', mail_group_id)],
|
||||
'context': {'default_model': 'mail.group', 'default_res_id': mail_group_id, 'search_default_message_unread': True},
|
||||
'domain': [
|
||||
('model', '=', 'mail.group'),
|
||||
('res_id', '=', mail_group_id),
|
||||
],
|
||||
'context': {
|
||||
'default_model': 'mail.group',
|
||||
'default_res_id': mail_group_id,
|
||||
},
|
||||
'res_model': 'mail.message',
|
||||
'thread_level': 1,
|
||||
'header_description': self._generate_header_description(cr, uid, group, context=context)
|
||||
'header_description': self._generate_header_description(cr, uid, group, context=context),
|
||||
'view_mailbox': True,
|
||||
'compose_placeholder': 'Send a message to the group',
|
||||
}
|
||||
cobj = self.pool.get('ir.actions.client')
|
||||
newref = cobj.copy(cr, SUPERUSER_ID, ref[1], default={'params': str(params), 'name': vals['name']}, context=context)
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
<field name="tag">mail.wall</field>
|
||||
<field name="res_model">mail.message</field>
|
||||
<field name="context">{
|
||||
'search_default_message_unread': True
|
||||
}</field>
|
||||
<field name="params">{
|
||||
'read_action': 'read'
|
||||
|
|
Loading…
Reference in New Issue