Skip to content

Commit d2d6c10

Browse files
jdkirkwoodAntoineVDV
authored andcommitted
[IMP] developer: clarify options for many2one widget
Only `no_create` is required to hide both the 'Create "xxx"' and the 'Create and Edit...' dropdown menu options. closes #2014 X-original-commit: 599a137 Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
1 parent 0cab975 commit d2d6c10

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

content/developer/reference/frontend/javascript_reference.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,10 +1911,12 @@ many2one (FieldMany2One)
19111911
19121912
Options:
19131913
1914-
- no_create: prevent the creation of related records
19151914
- 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...
1915+
- no_create: prevent the creation of related records - hide both the 'Create "xxx"'
1916+
and "Create and Edit..." dropdown menu items (default: false)
1917+
- no_quick_create: prevent the quick creation of related records - hide the 'Create "xxx"'
1918+
dropdown menu item (default: false)
1919+
- no_create_edit: hide the "Create and Edit..." dropdown menu item (default: false)
19181920
- 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*)
19191921
- always_reload: boolean, default to false. If true, the widget will always
19201922
do an additional name_get to fetch its name value. This is used for the

0 commit comments

Comments
 (0)