[IMP] fix styling for action buttons in list view
authorXavier Morel <xmo@openerp.com>
Tue, 12 Apr 2011 09:27:15 +0000 (11:27 +0200)
committerXavier Morel <xmo@openerp.com>
Tue, 12 Apr 2011 09:27:15 +0000 (11:27 +0200)
bzr revid: xmo@openerp.com-20110412092715-6sgdg51es8a4hpwz

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

index f6d8dac..2b70396 100644 (file)
@@ -422,6 +422,15 @@ body.openerp {
     border-collapse: collapse;
 }
 
+.openerp .oe-listview .oe-field-cell button {
+    padding: 0;
+    border: none;
+    background: none;
+}
+.openerp .oe-listview .oe-field-cell button:active {
+    opacity: 0.5;
+}
+
 /* Form */
 .openerp .required.error {
     border: 1px solid #900;
index e0d51d1..4e7dc44 100644 (file)
     </th>
     <t t-foreach="columns" t-as="column">
         <t t-set="attrs" t-value="column.attrs_for(row.data)"/>
-        <td t-if="column.invisible !== '1'" t-att-title="column.help">
+        <td t-if="column.invisible !== '1'" t-att-title="column.help"
+            class="oe-field-cell">
             <t t-if="!attrs.invisible">
                 <t t-set="is_button" t-value="column.tag === 'button'"/>
                 <!-- TODO: get correct widget from form -->