From b909a21d1f9f498a7d1cd6e5570cb7e5abd44206 Mon Sep 17 00:00:00 2001 From: "Xavier BOL (xbo)" Date: Fri, 6 Jan 2023 15:01:55 +0000 Subject: [PATCH] [IMP] backend: add `default_group_by` option in list view Related PR: odoo/odoo#109281 task-3084850 closes odoo/documentation#3311 Related: odoo/enterprise#35504 Signed-off-by: Antoine Vandevenne (anv) --- content/developer/reference/backend/views.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/developer/reference/backend/views.rst b/content/developer/reference/backend/views.rst index fc566f36f..b11a23c0a 100644 --- a/content/developer/reference/backend/views.rst +++ b/content/developer/reference/backend/views.rst @@ -1854,6 +1854,11 @@ root can have the following attributes: editable or not editable list can activate the multi-editing feature by defining the `multi_edit=1` +``default_group_by`` + whether the list view should be grouped if no grouping is specified via + the action or the current search. Should be the name of the field to group + by when no grouping is otherwise specified + ``default_order`` overrides the ordering of the view, replacing the model's order (:attr:`~odoo.models.BaseModel._order` model attribute). The value is a comma-separated list of fields, postfixed by ``desc`` to