summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorJigar Amin - OpenERP <jam@tinyerp.com>2012-08-23 17:01:15 +0530
committerJigar Amin - OpenERP <jam@tinyerp.com>2012-08-23 17:01:15 +0530
commitec67f4444772c18872d72f975259caf71f84a706 (patch)
tree1eb757ec8afb1d38ead26f52aaca34e8b8447939 /addons/web/static/src/xml/base.xml
parenta02de882a2f711414c64213ef0382c5bada5fbf5 (diff)
[FIX] The trash can icons (on the right of lines) should be hidden when delete=false in the corresponding tree view
bzr revid: jam@tinyerp.com-20120823113115-7rc1skcdy6pekqq3
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 05d921bc679..fe02ee5ff93 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -657,7 +657,7 @@
<t t-if="column.tag !== 'button'"><t t-esc="column.string"/></t>
</th>
</t>
- <th t-if="options.deletable" width="13px"/>
+ <th t-if="options.deletable and _is_action_enabled('delete')" width="13px"/>
</tr>
</thead>
<tfoot>
@@ -666,7 +666,7 @@
<td t-foreach="aggregate_columns" t-as="column" class="oe_list_footer oe_number"
t-att-data-field="column.id" t-att-title="column.label">
</td>
- <td t-if="options.deletable"/>
+ <td t-if="options.deletable and _is_action_enabled('delete')"/>
</tr>
</tfoot>
</table>
@@ -713,7 +713,7 @@
t-att-data-field="column.id"
><t t-raw="render_cell(record, column)"/></td>
</t>
- <td t-if="options.deletable" class='oe_list_record_delete' width="13px">
+ <td t-if="options.deletable and view._is_action_enabled('delete')" class='oe_list_record_delete' width="13px">
<button type="button" name="delete" class="oe_i">d</button>
</td>
</tr>