summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/xml/web_graph.xml
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2014-12-19 13:38:37 +0100
committerGéry Debongnie <ged@odoo.com>2014-12-19 14:34:23 +0100
commit2c08dc0ba610db61fe349d1602c12528ca8fc715 (patch)
tree143cb7f61e45e027c63be321ee3d4031963df1e7 /addons/web_graph/static/src/xml/web_graph.xml
parent9f7a0c096f0d3deabf8baf7be33b108f5b7884b5 (diff)
[IMP] web: new pivot view, full rewrite of graph view
This commit is a split of the former graphview into a pivot view (the tabular view) and graph view (the various charts). The code was fully rewritten. * pivot view should be faster (better underlying data structure and better algorithm) * better integration with the web client (use of sidebar, of menu buttons, bettor style) * new feature: pivot view can be sorted * new feature: pivot view cells can be clicked to open a list view with the corresponding domain * web_graph addon was removed, and the graph view code has been moved to the addon web. * the interaction with the searchbar was changed (no more column facet) * better and simpler code for graph view * mary corner cases in graph charts have been corrected (for ex, pie chart with positive and negative numbers) * graph/pivot correctly save their state when added to dashboard/saved (state such as current measure, chart mode, column groupbys, ...)
Diffstat (limited to 'addons/web_graph/static/src/xml/web_graph.xml')
-rw-r--r--addons/web_graph/static/src/xml/web_graph.xml65
1 files changed, 0 insertions, 65 deletions
diff --git a/addons/web_graph/static/src/xml/web_graph.xml b/addons/web_graph/static/src/xml/web_graph.xml
deleted file mode 100644
index 70bcf328d68..00000000000
--- a/addons/web_graph/static/src/xml/web_graph.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<templates>
-
- <t t-name="graph-view-buttons">
- <div class="btn-group btn-group-sm">
- <button class="btn btn-default fa fa-table oe-pivot-mode" title="Pivot Table"></button>
- <button class="btn btn-default fa fa-bar-chart-o oe-bar-mode" title="Bar Chart"></button>
- <button class="btn btn-default fa fa-line-chart oe-line-mode" title="Line Chart"></button>
- <button class="btn btn-default fa fa-pie-chart oe-pie-mode" title="Pie Chart"></button>
- </div>
- <div class="btn-group btn-group-sm">
- <button class="btn btn-default fa fa-expand oe-pivot" title="Flip columns and rows"></button>
- <button class="btn btn-default fa fa-arrows-alt oe-pivot" title="Expand"></button>
- <button class="btn btn-default fa fa-download oe-pivot" title="Download Data"></button>
- </div>
- <div class="btn-group btn-group-sm">
- <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
- Measures <span class="caret"/>
- </button>
- <ul class="oe-measure-list dropdown-menu"/>
- </div>
- </t>
- <div t-name="GraphWidget" class="graph_widget">
- <div class="graph_main_content"></div>
- </div>
-
- <div t-name="field_selection" class="dropdown">
- <span class="btn btn-default field-selection dropdown-toggle" data-toggle="dropdown"></span>
- <ul class="dropdown-menu multi-level" role="menu">
- <t t-foreach="fields" t-as="field">
- <t t-if="(field.type === 'date') || (field.type === 'datetime')">
- <li class="graph-dropdown-submenu">
- <a class="field-selection" t-att-data-field-id="field.id" t-att-data-id="header_id" t-att-data-interval="'month'" href="#">
- <t t-esc="field.value"/>
- </a>
- <ul class="dropdown-menu">
- <li><a href="#" class="field-selection" t-att-data-field-id="field.id" t-att-data-id="header_id" t-att-data-interval="'day'">Day</a></li>
- <li><a href="#" class="field-selection" t-att-data-field-id="field.id" t-att-data-id="header_id" t-att-data-interval="'week'">Week</a></li>
- <li><a href="#" class="field-selection" t-att-data-field-id="field.id" t-att-data-id="header_id" t-att-data-interval="'month'">Month</a></li>
- <li><a href="#" class="field-selection" t-att-data-field-id="field.id" t-att-data-id="header_id" t-att-data-interval="'quarter'">Quarter</a></li>
- <li><a href="#" class="field-selection" t-att-data-field-id="field.id" t-att-data-id="header_id" t-att-data-interval="'year'">Year</a></li>
- </ul>
- </li>
- </t>
-
- <t t-if="(field.type !== 'date') &amp;&amp; (field.type !== 'datetime')">
- <li>
- <a class="field-selection" t-att-data-field-id="field.id" t-att-data-id="header_id" href="#">
- <t t-esc="field.value"/>
- </a>
- </li>
- </t>
- </t>
- </ul>
- </div>
-
- <div t-name="graph_no_data" class="oe_view_nocontent" >
- <div class="oe_empty_custom_dashboard">
- <p><b>No data to display.</b></p>
- <p>
- No data available for this graph. Try to add some records, or make sure
- that there is at least one measure and no active filter in the search bar.
- </p>
- </div>
- </div>
-</templates>