[FIX] web_kanban: parent can be undefined in some cases
authorDenis Ledoux <dle@odoo.com>
Tue, 5 Aug 2014 13:44:57 +0000 (15:44 +0200)
committerDenis Ledoux <dle@odoo.com>
Tue, 5 Aug 2014 13:44:57 +0000 (15:44 +0200)
opw-611106, when clicking quickly Sales > Opportunities than Sales > Leads.

addons/web_kanban/static/src/xml/web_kanban.xml

index c1d504e..aebdbac 100644 (file)
@@ -45,8 +45,8 @@
                     <ul class="oe_dropdown_menu oe_kanban_group_dropdown">
                         <li><a data-action="toggle_fold" href="#">Fold</a></li>
                         <t t-if="widget.view.grouped_by_m2o and widget.value">
-                            <li t-if="parent.is_action_enabled('group_edit')"><a data-action="edit" href="#">Edit</a></li>
-                            <li t-if="parent.is_action_enabled('group_delete')"><a data-action="delete" href="#">Delete</a></li>
+                            <li t-if="parent &amp;&amp; parent.is_action_enabled('group_edit')"><a data-action="edit" href="#">Edit</a></li>
+                            <li t-if="parent &amp;&amp; parent.is_action_enabled('group_delete')"><a data-action="delete" href="#">Delete</a></li>
                         </t>
                     </ul>
                 </div>