Skip to content

Commit 0f43f59

Browse files
authored
Clarify options for many2one widget
Only `no_create` is required to hide both the 'Create "xxx"' and the 'Create and Edit...' dropdown menu options.
1 parent 5f1979b commit 0f43f59

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

content/developer/reference/frontend/javascript_reference.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,10 +1911,14 @@ many2one (FieldMany2One)
19111911
19121912
Options:
19131913
1914-
- no_create: prevent the creation of related records
1915-
- quick_create: allow the quick creation of related records (default: true)
1916-
- no_quick_create: prevent the quick creation of related records (don't ask me)
1917-
- no_create_edit: same as no_create, maybe...
1914+
- quick_create: allow the quick creation of related records - show the 'Create "xxx"'
1915+
dropdown menu item (default: true)
1916+
- no_create: prevent the creation of related records - hide both the 'Create "xxx"'
1917+
and "Create and Edit..." dropdown menu items
1918+
(default: false, takes precedence over other options)
1919+
- no_quick_create: prevent the quick creation of related records - hide the 'Create "xxx"'
1920+
dropdown menu item (default: false)
1921+
- no_create_edit: hide the "Create and Edit..." dropdown menu item (default: false)
19181922
- create_name_field: when creating a related record, if this option is set, the value of the *create_name_field* will be filled with the value of the input (default: *name*)
19191923
- always_reload: boolean, default to false. If true, the widget will always
19201924
do an additional name_get to fetch its name value. This is used for the

0 commit comments

Comments
 (0)