From e1aac71769c8d07a358b2d8717efa28248e18a34 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Mon, 11 Jun 2018 15:45:30 +0200 Subject: [IMP] web: add support for interval selection in groupbys In this commit, we extend the search view to allow the selection of some intervals for date or datetime fields in groupby menu. The valid intervals are day, week, month, quarter, and year. It is also possible to add a button 'Group By' in the control panel owned by a graph view in case it is declared 'embedded' (e.g. in a dashboard view). Note that have three new generic reusable widgets have been introduced in this commit: DropdownMenu, GroupByMenu, and FiltersMenu. --- addons/web/static/src/xml/base.xml | 108 ++++++++++++++++++++++++------------- 1 file changed, 72 insertions(+), 36 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 458e15dd2be..328f1ab93b5 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1018,6 +1018,75 @@ + + + + + +
  • +
  • + + + + + +
      + +
    • + +
    • +
      +
    +
  • + + +
    +
    + +
    + + +
    + + +
  • +
  • + Add Custom Group +
  • +
  • + +
  • +
  • + +
  • +
    + + +
  • +
  • + Add Custom Filter +
  • +
  • + + +
  • +
    + + +
    @@ -1050,25 +1119,12 @@
    - + -
    - - -
    +
  • -
    - - -
    - -
  • -
  • - -
  • -
    +