summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-12-14 15:43:17 +0100
committerAntony Lesuisse <al@openerp.com>2011-12-14 15:43:17 +0100
commite579d0fd712b40810be2c6d2951784d5d0b529de (patch)
tree413940d826362577973d95cce8d90e7e44b7eb8d /addons/web/static/src/xml/base.xml
parent05af07ad0ed9023cab93d2d33877a6f99f858c05 (diff)
[FIX] don't display add/remove buttons in group_by_no_leaf views
bzr revid: xmo@openerp.com-20111214144317-hfctv9rebwp5kvkp
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index fe5598ff6e9..a880293403d 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -573,7 +573,7 @@
<th t-att-colspan="columns_count">
<table>
<tr>
- <td t-if="options.action_buttons !== false" class="oe-actions">
+ <td t-if="!no_leaf and options.action_buttons !== false" class="oe-actions">
<button type="button" class="oe-list-add"
t-if="options.addable">
<t t-esc="options.addable"/>
@@ -634,7 +634,7 @@
this.prepend($title);
</t>
</t>
-<th t-name="Listview.navigation.button" t-if="options.pager !== false"
+<th t-name="Listview.navigation.button" t-if="!no_leaf and options.pager !== false"
class="oe-list-pager" t-att-colspan="columns_count">
<button type="button" disabled="disabled"
data-pager-action="first">First</button>