Skip to content

Commit 336c770

Browse files
committed
[IMP] javascript reference: document domain field options
Before this commit, options of the domain field weren't documented. Now, they are. closes #11735 X-original-commit: 04ac6de Signed-off-by: Aaron Bohy (aab) <[email protected]>
1 parent cc896e0 commit 336c770

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

content/developer/reference/frontend/javascript_reference.rst

+14
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,20 @@ Domain (`domain`)
828828

829829
- Supported field types: `char`
830830

831+
Options:
832+
833+
- `model`: the name of the char field encoding the `res_model` on which the domain applies.
834+
835+
- `foldable` (default: `false`): if true, the domain field is rendered compactly and unfolds
836+
itself upon user interaction.
837+
838+
- `in_dialog` (default: `false`): if true, the widget opens a dialog when the user wants to edit
839+
the domain whereas by default, the domain editor is rendered just below the value.
840+
841+
- `count_limit` (default: `10000`): the domain widget performs search_count requests to validate
842+
the domain, and to indicate the number of records matching it. This requests might be costly
843+
on large tables, so by default, the search_count is limited to 10000.
844+
831845
Link button (`link_button`)
832846
The `LinkButton` widget actually simply displays a span with an icon and the
833847
text value as content. The link is clickable and will open a new browser

0 commit comments

Comments
 (0)