From 336c77042a1dac9d53a9aae8d5267e169cbf66ae Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 10 Jan 2025 08:57:23 +0000 Subject: [PATCH] [IMP] javascript reference: document domain field options Before this commit, options of the domain field weren't documented. Now, they are. closes odoo/documentation#11735 X-original-commit: 04ac6de366a21675c18467ae0170497e2a748369 Signed-off-by: Aaron Bohy (aab) --- .../reference/frontend/javascript_reference.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/developer/reference/frontend/javascript_reference.rst b/content/developer/reference/frontend/javascript_reference.rst index a298de52f..18649cfcf 100644 --- a/content/developer/reference/frontend/javascript_reference.rst +++ b/content/developer/reference/frontend/javascript_reference.rst @@ -828,6 +828,20 @@ Domain (`domain`) - Supported field types: `char` + Options: + + - `model`: the name of the char field encoding the `res_model` on which the domain applies. + + - `foldable` (default: `false`): if true, the domain field is rendered compactly and unfolds + itself upon user interaction. + + - `in_dialog` (default: `false`): if true, the widget opens a dialog when the user wants to edit + the domain whereas by default, the domain editor is rendered just below the value. + + - `count_limit` (default: `10000`): the domain widget performs search_count requests to validate + the domain, and to indicate the number of records matching it. This requests might be costly + on large tables, so by default, the search_count is limited to 10000. + Link button (`link_button`) The `LinkButton` widget actually simply displays a span with an icon and the text value as content. The link is clickable and will open a new browser