[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 odoo/documentation#2016
X-original-commit: 599a137ffc
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
parent
951e47708d
commit
ded1e69553
@ -1907,10 +1907,12 @@ many2one (FieldMany2One)
|
|||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
- no_create: prevent the creation of related records
|
|
||||||
- quick_create: allow the quick creation of related records (default: true)
|
- quick_create: allow the quick creation of related records (default: true)
|
||||||
- no_quick_create: prevent the quick creation of related records (don't ask me)
|
- no_create: prevent the creation of related records - hide both the 'Create "xxx"'
|
||||||
- no_create_edit: same as no_create, maybe...
|
and "Create and Edit..." dropdown menu items (default: false)
|
||||||
|
- no_quick_create: prevent the quick creation of related records - hide the 'Create "xxx"'
|
||||||
|
dropdown menu item (default: false)
|
||||||
|
- no_create_edit: hide the "Create and Edit..." dropdown menu item (default: false)
|
||||||
- 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*)
|
- 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*)
|
||||||
- always_reload: boolean, default to false. If true, the widget will always
|
- always_reload: boolean, default to false. If true, the widget will always
|
||||||
do an additional name_get to fetch its name value. This is used for the
|
do an additional name_get to fetch its name value. This is used for the
|
||||||
|
Loading…
Reference in New Issue
Block a user