[FIX] Do not show group's edit/delete menus when group has no value (eg: Undefined)

bzr revid: fme@openerp.com-20120816135023-m5xnoo0fc3cxzadg
This commit is contained in:
Fabien Meghazi 2012-08-16 15:50:23 +02:00
parent 49fb611b63
commit 59583e4324
1 changed files with 4 additions and 2 deletions

View File

@ -36,8 +36,10 @@
<span class="oe_e">í</span>
<ul class="oe_dropdown_menu oe_kanban_group_dropdown">
<li><a data-action="toggle_fold" href="#">Fold</a></li>
<li t-if="widget.view.grouped_by_m2o"><a data-action="edit" href="#">Edit</a></li>
<li t-if="widget.view.grouped_by_m2o"><a data-action="delete" href="#">Delete</a></li>
<t t-if="widget.view.grouped_by_m2o and widget.value">
<li><a data-action="edit" href="#">Edit</a></li>
<li><a data-action="delete" href="#">Delete</a></li>
</t>
</ul>
</div>
<div class="oe_fold_column">