From 667da8bcff5d987dc412254a49a2aff9990c41f3 Mon Sep 17 00:00:00 2001 From: "Laurent Stukkens (LTU)" Date: Tue, 2 Aug 2022 12:33:47 +0000 Subject: [PATCH] [IMP] developer: add default_period multi values support Update the documentation accordingly to the support of multi values support in the default_period attribute of the filter elements in the search views. task-2941625 closes odoo/documentation#2551 Related: odoo/odoo#97321 Signed-off-by: Antoine Vandevenne (anv) --- content/developer/reference/backend/views.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/developer/reference/backend/views.rst b/content/developer/reference/backend/views.rst index 69bbce4dd..d1407128b 100644 --- a/content/developer/reference/backend/views.rst +++ b/content/developer/reference/backend/views.rst @@ -2283,7 +2283,7 @@ Possible children elements of the search view are: ``default_period`` (optional) only makes sense for a filter with non empty ``date`` attribute. - determines which period is activated if the filter is in the + determines which periods are activated if the filter is in the default set of filters activated at the view initialization. If not provided, 'this_month' is used by default. @@ -2292,11 +2292,14 @@ Possible children elements of the search view are: fourth_quarter, third_quarter, second_quarter, first_quarter, this_year, last_year, antepenultimate_year. - Example: + The attribute accepts comma separated values. + + Examples: .. code-block:: xml + ``context`` a Python dictionary, merged into the action's domain to generate the