[FIX] Fixed small bug in group kanban view leading to nothing displayed

bzr revid: tde@openerp.com-20120203122933-hfedmktbv6z7818s
This commit is contained in:
Thibault Delavallée
2012-02-03 13:29:33 +01:00
parent af6d104537
commit d24a651ad3
2 changed files with 3 additions and 6 deletions
+2 -6
View File
@@ -67,8 +67,7 @@
<t t-name="kanban-box">
<div class="oe_group_vignette">
<div class="oe_group_image">
<!-- <a type="edit"><img t-att-src="kanban_image('hr.employee', 'photo', record.id.value)" class="oe_employee_picture"/></a> -->
prout
Image
</div>
<div class="oe_group_details">
<h4><a type="edit"><field name="name"/></a></h4>
@@ -78,9 +77,6 @@
<li>Joined</li>
</ul>
</div>
<script>
$('.oe_employee_picture').load(function() { if($(this).width() > $(this).height()) { $(this).addClass('oe_employee_picture_wide') } });
</script>
</div>
</t>
</templates>
@@ -172,7 +168,7 @@
name="See followers"
res_model="mail.subscription"
src_model="mail.group"
view_mode="tree,form"
view_mode="kanban,tree,form"
view_type="form"/>
</data>
+1
View File
@@ -60,6 +60,7 @@ class mail_notification(osv.osv):
'message_id': fields.many2one('mail.message', string='Message',
ondelete='cascade', required=True),
'read': fields.boolean('Read'),
# TODO: add a timestamp ? or use message date ?
}
_defaults = {