diff options
| author | Quentin Nicolay <qni@odoo.com> | 2019-10-15 09:15:32 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-16 08:26:10 +0000 |
| commit | d59b67a91587b4a968cbd9dd053ddfe8beaedd14 (patch) | |
| tree | 41adddca61d2bff17714b037e301853685b8786f /doc/reference | |
| parent | 644663eb4a356b06f4a135bfaf60bce98aa7ee63 (diff) | |
[FIX] web: add 'no_edit_color' option to many2many_tags
This option, if set to True, prevents the user from modifying the
color of the tags.
Part of task 2070454
closes odoo/odoo#38848
X-original-commit: a62b65a8f9114493064d4efae92825814a880c04
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/javascript_reference.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index 6a1dbdd7599..49ab37cf2e0 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -2131,6 +2131,12 @@ Relational fields <field name="category_id" widget="many2many_tags" options="{'color_field': 'color'}"/> + - no_edit_color: set to True to remove the possibility to change the color of the tags (default: False). + + .. code-block:: xml + + <field name="category_id" widget="many2many_tags" options="{'color_field': 'color', 'no_edit_color': True}"/> + - form.many2many_tags (FormFieldMany2ManyTags) Specialization of many2many_tags widget for form views. It has some extra code to allow editing the color of a tag. |
