[FIX] mail: display 'Compose a new message' button; Limit messages: 30

bzr revid: chm@openerp.com-20121107082442-t48a3fqheme0r0h4
This commit is contained in:
Christophe Matthieu 2012-11-07 09:24:42 +01:00
parent af94a6a2c3
commit e9a24477a8
3 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ class mail_message(osv.Model):
_order = 'id desc'
_rec_name = 'record_name'
_message_read_limit = 100
_message_read_limit = 30
_message_read_fields = ['id', 'parent_id', 'model', 'res_id', 'body', 'subject', 'date', 'to_read', 'email_from',
'type', 'vote_user_ids', 'attachment_ids', 'author_id', 'partner_ids', 'record_name', 'favorite_user_ids']
_message_record_name_length = 18

View File

@ -8,7 +8,7 @@
'default_model': 'res.users',
'default_res_id': uid
}</field>
<field name="params">{
<field name="params" eval="&quot;{
'domain': [
('notification_ids.partner_id.user_ids', 'in', [uid]),
('to_read', '=', True),
@ -17,7 +17,7 @@
'view_mailbox': True,
'view_inbox': True,
'read_action': 'read'
}</field>
}&quot;"/>
<field name="help">
There are no message in your mailbox for this search.
</field>

View File

@ -147,7 +147,7 @@
</td>
<td><div class="oe_view_manager_view_search" t-opentag="true"/></td>
</tr>
<tr class="oe_header_row" t-if="widget.context.view_mailbox" >
<tr class="oe_header_row" t-if="widget.action.params.view_inbox" >
<td colspan="2">
<button type="button" class="oe_write_full oe_highlight">
Compose a new message