[IMP]resolve error

bzr revid: sgo@tinyerp.com-20120907114216-5qbzq1y80ut9d6mx
This commit is contained in:
Sanjay Gohel (Open ERP)
2012-09-07 17:12:16 +05:30
parent 28c02858aa
commit 6977a13649
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -47,6 +47,15 @@
<field name="res_model">mail.message.subtype</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a message subtype.
</p><p>
OpenERP's message subtype allows to ease and fasten the
subtype which helps to decrease over crowdy wall comments which displays
only those.
</p>
</field>
</record>
<menuitem name="Subtypes" id="menu_message_subtype" parent="base.menu_email"
+2 -1
View File
@@ -117,7 +117,8 @@ openerp_mail_followers = function(session, mail) {
follower_read.then(function (follower_record){
if(follower_record.length != 0){
_(follower_record[0].subtype_ids).each(function (subtype_id){
self.$el.find('.oe_msg_subtype_check[id=' + subtype_id + ']')[0].checked=true
if(self.$el.find('.oe_msg_subtype_check[id=' + subtype_id + ']')[0]){
self.$el.find('.oe_msg_subtype_check[id=' + subtype_id + ']')[0].checked=true}
});
}
})