[FIX] Sidebar: only show delete icon for attachment section
authorFabien Meghazi <fme@openerp.com>
Mon, 18 Jun 2012 13:19:30 +0000 (15:19 +0200)
committerFabien Meghazi <fme@openerp.com>
Mon, 18 Jun 2012 13:19:30 +0000 (15:19 +0200)
bzr revid: fme@openerp.com-20120618131930-c16t4i7yysk3hkhy

addons/web/static/src/xml/base.xml

index 32bd5e2..2a51e17 100644 (file)
                         <a class="oe_sidebar_action_a" t-att-title="item.title" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank">
                             <t t-raw="item.label"/>
                         </a>
-                        <a class="oe_sidebar_delete_item" t-att-data-id="item.id" title="Delete this attachment">x</a>
+                        <a t-if="section.name == 'files'" class="oe_sidebar_delete_item" t-att-data-id="item.id" title="Delete this attachment">x</a>
                     </li>
                     <li t-if="section.name == 'files'" class="oe_sidebar_add_attachment">
                         <t t-call="HiddenInputFile">