[IMP] improve code in mail.xml

bzr revid: fka@tinyerp.com-20120823090616-e2ro792wqyywxtt9
This commit is contained in:
Foram Katharotiya (OpenERP)
2012-08-23 14:36:16 +05:30
parent 753e55c089
commit 27e0487ee7
2 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -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);
});
},
+11 -3
View File
@@ -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&amp;id=#{record.id}"><t t-raw="record.name"/></a>
</li>
<li t-name="mail.subtype.ids">
<a t-attf-href="#model=mail.message.subtype&amp;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&amp;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>