Skip to content

Commit 125fd44

Browse files
committed
[IMP] javascript reference: document domain field options
Before this commit, options of the domain field weren't documented. Now, they are. X-original-commit: 04ac6de
1 parent cc896e0 commit 125fd44

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/developer/reference/frontend/javascript_reference.rst

+10
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,16 @@ 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+
831841
Link button (`link_button`)
832842
The `LinkButton` widget actually simply displays a span with an icon and the
833843
text value as content. The link is clickable and will open a new browser

0 commit comments

Comments
 (0)