diff options
| author | Siddarth Gajjar <sga@odoo.com> | 2018-05-30 14:52:17 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-05-30 15:39:15 +0200 |
| commit | c75c2fa9e3da007f080a4d4691d83d4c29112b1f (patch) | |
| tree | 62c1a4e36ad59afce79d77bba3eeeed9ea9f36b7 /doc | |
| parent | cda8bdc8b371429c7f88326a99cb5ebf6c446a1d (diff) | |
[IMP] web: add a badge based widget for selection fields
This commit introduces a new widget to be used for selection-based fields.
Valid choices are displayed using rectangular badges and not like the
standard list. This widget is valid for selection and many2one fields
like selection or radio widgets.
Co-authored-by: Siddarth Gajjar <sga@odoo.com>
Co-authored-by: Mohammed Shekha <msh@openerp.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/reference/javascript_reference.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index 0e9c89f611c..ef41944e389 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -1756,6 +1756,16 @@ Relational fields <field name="recommended_activity_type_id" widget="radio" options="{'horizontal':true}"/> +- selection_badge (FieldSelectionBadge) + This is a subfield of FieldSelection, but specialized to display all the + valid choices as rectangular badges. + + - Supported field types: *selection, many2one* + + .. code-block:: xml + + <field name="recommended_activity_type_id" widget="selection_badge"/> + - many2one (FieldMany2One) Default widget for many2one fields. |
