[IMP] display buttons header (pagination & al) when list not selectable, but not...
authorXavier Morel <xmo@openerp.com>
Fri, 27 May 2011 06:18:20 +0000 (08:18 +0200)
committerXavier Morel <xmo@openerp.com>
Fri, 27 May 2011 06:18:20 +0000 (08:18 +0200)
bzr revid: xmo@openerp.com-20110527061820-9fsengtgnhf7qp4u

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

index 37a0b13..21f54b0 100644 (file)
     <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
     <t t-set="actions_span" t-value="Math.floor((options.deletable or options.addable) ? columns_count/2 : 0)"/>
     <thead class="ui-widget-header">
-        <tr t-if="options.selectable">
+        <tr>
             <th t-if="actions_span" t-att-colspan="actions_span"
                 class="oe-actions">
                 <t t-if="flags.action_buttons !== false">
                         <t t-esc="options.addable"/>
                     </button>
                     <button type="button" id="oe-list-delete"
-                            t-if="options.deletable">
+                            t-if="options.selectable and options.deletable">
                         Delete
                     </button>
                 </t>