summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorAntoine Huvelle <ahu@openerp.com>2011-12-14 16:25:44 +0100
committerAntoine Huvelle <ahu@openerp.com>2011-12-14 16:25:44 +0100
commit9b1f2d686ecf9b707254dbe9d0feefc1baa24bab (patch)
treed118ef8ec5b37e414a2b40716d13b76295d9c63a /addons/web/static/src/xml/base.xml
parent20d5fc5b8adf27bbed3470c02a11fa268e9f57bc (diff)
parente557a4b4c0d720c778828b73eae19920e9cf8f66 (diff)
[Merge]
bzr revid: ahu@openerp.com-20111214152544-qmfkzaqubwsafwzy
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml13
1 files changed, 10 insertions, 3 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 73b0b59125e..8f5fb686e50 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -481,6 +481,10 @@
</t>
<t t-extend="ViewManager" t-name="One2Many.viewmanager">
<t t-jquery="span.oe_view_title_text" t-operation="replace"/>
+
+ <t t-jquery=".oe-view-manager-header">
+ this.attr('t-if', 'views.length != 1');
+ </t>
</t>
<t t-name="Sidebar">
@@ -567,7 +571,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"/>
@@ -617,6 +621,9 @@
<t t-jquery="thead.ui-widget-header > tr:first">
this.removeAttr('t-if');
</t>
+
+ <t t-jquery="tfoot &gt; tr:last-child" t-operation="replace"/>
+
<t t-jquery="td.oe-actions">
this.removeAttr('t-if');
var $title = $(document.createElement('h3')).addClass('oe_view_title');
@@ -625,7 +632,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"></button>
@@ -1146,7 +1153,6 @@
<div class="oe_search-view-buttons">
<button>Search</button>
<button type="reset">Clear</button>
- <button type="button" class="oe_search-view-custom-filter-btn"><span>Advanced Filter</span></button>
<select class="oe_search-view-filters-management">
</select>
</div>
@@ -1160,6 +1166,7 @@
</t>
</optgroup>
<optgroup label="-- Actions --">
+ <option value="advanced_filter">Advanced Filter</option>
<option value="save_filter">Save Filter</option>
<option value="add_to_dashboard">Add to Dashboard</option>
<option value="manage_filters">Manage Filters</option>