[IMP] improve code in mail.xml
bzr revid: fka@tinyerp.com-20120823090616-e2ro792wqyywxtt9
This commit is contained in:
@@ -141,7 +141,7 @@ openerp_mail_followers = function(session, mail) {
|
||||
})
|
||||
});
|
||||
_(records).each(function (record) {
|
||||
$(session.web.qweb.render('mail.subtype.ids', {'record': record})).appendTo(subtype_list);
|
||||
$(session.web.qweb.render('mail.record_thread.subtype', {'record': record})).appendTo(subtype_list);
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -28,9 +28,17 @@
|
||||
<img class="oe_mail_thumbnail oe_mail_frame" t-attf-src="{record.avatar_url}"/>
|
||||
<a t-attf-href="#model=res.users&id=#{record.id}"><t t-raw="record.name"/></a>
|
||||
</li>
|
||||
<li t-name="mail.subtype.ids">
|
||||
<a t-attf-href="#model=mail.message.subtype&id=#{record.id}"><t t-raw="record.name"/></a>
|
||||
<input type="checkbox" t-att-id="record.id" t-att-name="record.name" class="oe_msg_subtype_check"/>
|
||||
<li t-name="mail.record_thread.subtype">
|
||||
<table width="50%">
|
||||
<tr>
|
||||
<td>
|
||||
<a t-attf-href="#model=mail.message.subtype&id=#{record.id}"><t t-raw="record.name"/></a>
|
||||
</td>
|
||||
<td width="10%">
|
||||
<input type="checkbox" t-att-id="record.id" t-att-name="record.name" class="oe_msg_subtype_check"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user