[IMP] mail: change the header title and description for each mailbox and group discussion
bzr revid: chm@openerp.com-20121114122033-dl70fqty2kbd5gj1
This commit is contained in:
parent
758115c1a5
commit
a43662d125
|
@ -80,7 +80,6 @@
|
|||
<field name="type">comment</field>
|
||||
<field name="subtype_id" ref="mt_comment"/>
|
||||
<field name="author_id" ref="base.partner_root"/>
|
||||
<field name="favorite_user_ids" eval="[(6, 0, [ref('base.user_demo')])]"/>
|
||||
<field name="date" eval="(DateTime.today() - timedelta(minutes=22)).strftime('%Y-%m-%d %H:%M')"/>
|
||||
</record>
|
||||
<record id="message_blogpost0_comment3" model="mail.message">
|
||||
|
@ -268,7 +267,7 @@ Virginie</p>]]></field>
|
|||
<field name="subtype_id" ref="mt_comment"/>
|
||||
<field name="author_id" ref="base.partner_demo"/>
|
||||
<field name="notified_partner_ids" eval="[(6, 0, [ref('base.partner_demo'), ref('base.partner_root')])]"/>
|
||||
<field name="date" eval="(DateTime.today() - timedelta(hours=2, minutes=4)).strftime('%Y-%m-%d %H:%M')"/>
|
||||
<field name="date" eval="(DateTime.today() - timedelta(minutes=4)).strftime('%Y-%m-%d %H:%M')"/>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -133,6 +133,7 @@ class mail_group(osv.Model):
|
|||
'context': {'default_model': 'mail.group', 'default_res_id': mail_group_id},
|
||||
'res_model': 'mail.message',
|
||||
'thread_level': 1,
|
||||
'header_description': vals['description'],
|
||||
}
|
||||
cobj = self.pool.get('ir.actions.client')
|
||||
newref = cobj.copy(cr, SUPERUSER_ID, ref[1], default={'params': str(params), 'name': vals['name']}, context=context)
|
||||
|
|
|
@ -6,6 +6,17 @@
|
|||
<field name="name">Discussion Group</field>
|
||||
<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'
|
||||
}</field>
|
||||
<field name="help" type="html">
|
||||
<p>
|
||||
No message in this group.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Group Kanban View !-->
|
||||
|
|
|
@ -1591,7 +1591,7 @@ openerp.mail = function (session) {
|
|||
|
||||
this.action = _.clone(action);
|
||||
this.domain = this.action.params.domain || this.action.domain || [];
|
||||
this.context = this.action.params.context || this.action.context || {};
|
||||
this.context = _.extend(this.action.params.context || {}, this.action.context || {});
|
||||
|
||||
this.defaults = {};
|
||||
for (var key in this.context) {
|
||||
|
|
|
@ -137,9 +137,15 @@
|
|||
<td colspan="2">
|
||||
<h2 class="oe_view_title">
|
||||
<span class="oe_view_title_text">
|
||||
Email box
|
||||
<t t-raw="widget.action.name"/>
|
||||
</span>
|
||||
</h2>
|
||||
<t t-if="widget.action.params.header_description">
|
||||
<br/>
|
||||
<span class="oe_view_subtitle_text">
|
||||
<t t-raw="widget.action.params.header_description"/>
|
||||
</span>
|
||||
</t>
|
||||
</td>
|
||||
<td><div class="oe_view_manager_view_search" t-opentag="true"/></td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue