summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-11-23 22:53:56 +0100
committerFabien Meghazi <fme@openerp.com>2011-11-23 22:53:56 +0100
commit66d11b95f4ce2d7c8b7589c364ca4f5cc8679526 (patch)
tree305910d0b70fcccef5e71ac51d2324536b56cdf2 /addons/web/static/src/xml
parent35edbcd90f9624ce66d5f6e7db30c0b25b7db6a9 (diff)
[ADD] Added possibility to add actions to dashboards from searchviews filters
bzr revid: fme@openerp.com-20111123215356-wspyu61u6ad1vois
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 0ea257e7986..1fe4d028db4 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1135,6 +1135,7 @@
</t>
<option value="_actions">-- Actions --</option>
<option value="save_filter">Save Filter</option>
+ <option value="add_to_dashboard">Add to Dashboard</option>
<option value="manage_filters">Manage Filters</option>
</t>
<t t-name="SearchView.managed-filters.add">
@@ -1144,6 +1145,16 @@
<p>(Any existing filter with the same name will be replaced)</p>
</div>
</t>
+<t t-name="SearchView.add_to_dashboard">
+ <div class="oe_forms">
+ <p><b>Select Dashboard to add this filter to:</b></p>
+ <select style="width: 100%; margin-right: 1em;">
+ <option t-foreach="dashboards" t-as="menu" t-att-value="menu.id" t-att-selected="(menu.id == selected_menu_id) || undefined"><t t-esc="menu.name"/></option>
+ </select>
+ <p><b>Title of new Dashboard item:</b></p>
+ <input type="text" style="width: 100%; margin-right: 1em;"/>
+ </div>
+</t>
<t t-name="SearchView.render_lines">
<table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
t-foreach="lines" t-as="line">
@@ -1711,4 +1722,4 @@
<t t-name="EmptyComponent">
<div></div>
</t>
-</templates> \ No newline at end of file
+</templates>