From 2c102c292f22f5d400d8caf779428fdc55c15e43 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Tue, 28 Apr 2020 12:43:30 +0000 Subject: [IMP] web: search panel counter changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit introduces several changes in the search panel with respect to record counts: - the record counts are now also available for the fields with select="one" attribute (if not disabled explicitely). - the record counts are better computed using the idea that selected values within a group should not impact the counts for the group values but only the counts for the other group values. On the way we have changed two keys in the values returned by the server: - 'count' becomes '__count'. It has been done to avoid a possible clash in case a model would have a field named 'count' and that the field values would be wanted for some reason. - 'name' (multi case) becomes 'display_name'. It has been done in order to make the select one and multi cases more similar and factorize some code. TASK-ID: 2166814 Co-authored-by: Raphaël Collet Co-authored-by: Mathieu Duckerts-Antoine Co-authored-by: Alexis Lacroix Co-authored-by: Julien Mougenot --- addons/web/static/src/xml/kanban.xml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'addons/web/static/src/xml') diff --git a/addons/web/static/src/xml/kanban.xml b/addons/web/static/src/xml/kanban.xml index cb34cd16851..970f9fd9825 100644 --- a/addons/web/static/src/xml/kanban.xml +++ b/addons/web/static/src/xml/kanban.xml @@ -245,10 +245,14 @@
  • -
      @@ -285,10 +289,12 @@
      -
        @@ -313,10 +319,12 @@
        -
        -- cgit v1.2.3