diff options
| author | Priyanka Kakadiya <pka@odoo.com> | 2020-04-21 12:27:53 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-05-19 07:48:41 +0000 |
| commit | fa00ff97be5429f2d3fb43a28a8d4eb38e25f4c5 (patch) | |
| tree | 8e2602469905419904b5dbb96820eed7d3cce725 /addons/web/static/src/xml/base.xml | |
| parent | 5d50509be84e77529f04a33199ad2ec1f547645a (diff) | |
[IMP] web: graph: add bar/line chart sorting
PURPOSE
Currently, reporting views such as the bar and line charts have
their x-axis sorted either alphabetically or according to a
sequence. When reporting, the user would be interested in sorting
the x-axis values by their measure.
SPECIFICATIONS
Add 'ascending' and 'descending' options in graph view for bar and
line charts
Task 2070103
closes odoo/odoo#49970
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 77d6f264ff2..aabc2b9f528 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1046,6 +1046,10 @@ <div class="btn-group" role="toolbar" aria-label="Change graph"> <button class="btn btn-secondary fa fa-database o_graph_button" title="Stacked" aria-label="Stacked" data-mode="stack"/> </div> + <div class="btn-group" role="toolbar" aria-label="Sort graph"> + <button class="btn btn-secondary fa fa-sort-amount-desc o_graph_button" title="Descending" aria-label="Descending" data-order="desc"/> + <button class="btn btn-secondary fa fa-sort-amount-asc o_graph_button" title="Ascending" aria-label="Ascending" data-order="asc"/> + </div> </t> <div t-name="GraphView.CustomTooltip" class="o_graph_custom_tooltip"> |
