[FIX] cell borders in padding rows of list views
authorXavier Morel <xmo@openerp.com>
Mon, 14 Nov 2011 09:27:21 +0000 (10:27 +0100)
committerXavier Morel <xmo@openerp.com>
Mon, 14 Nov 2011 09:27:21 +0000 (10:27 +0100)
bzr revid: xmo@openerp.com-20111114092721-n9gqprm31hhcfr5w

addons/web/static/src/js/view_list.js

index d687faa..77f04d4 100644 (file)
@@ -876,15 +876,20 @@ openerp.web.ListView.List = openerp.web.Class.extend( /** @lends openerp.web.Lis
         }
         var cells = [];
         if (this.options.selectable) {
-            cells.push('<td title="selection"></td>');
+            cells.push('<th class="oe-record-selector"></td>');
         }
         _(this.columns).each(function(column) {
-            if (column.invisible !== '1') {
+            if (column.invisible === '1') {
+                return;
+            }
+            if (column.tag === 'button') {
+                cells.push('<td class="oe-button" title="' + column.string + '">&nbsp;</td>');
+            } else {
                 cells.push('<td title="' + column.string + '">&nbsp;</td>');
             }
         });
         if (this.options.deletable) {
-            cells.push('<td><button type="button" style="visibility: hidden"> </button></td>');
+            cells.push('<td class="oe-record-delete"><button type="button" style="visibility: hidden"> </button></td>');
         }
         cells.unshift('<tr>');
         cells.push('</tr>');