[IMP] web: display the default label next to the icon in state_selection
Purpose of the commit is to display the default label next to the icon for state_selection widget in list view. also that widget support the hide_label option to hide the label in state_selection widget of the list view. Related Ent PR: odoo/enterprise#16559 closes odoo/odoo#66589 Taskid: 2451287 Related: odoo/upgrade#2195 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -2149,6 +2149,19 @@ kanban_state_selection (StateSelectionWidget)
|
||||
|
||||
- Supported field types: *selection*
|
||||
|
||||
list.state_selection (ListStateSelectionWidget)
|
||||
In list views, the state_selection widget displays by default the label next to the icon.
|
||||
|
||||
- Supported field types: *selection*
|
||||
|
||||
Options:
|
||||
|
||||
- hide_label: hide the label next to the icon
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<field name="kanban_state" widget="state_selection" options="{'hide_label': True}"/>
|
||||
|
||||
boolean_favorite (FavoriteWidget)
|
||||
This widget is displayed as an empty (or not) star, depending on a boolean
|
||||
value. Note that it also can be edited in readonly mode.
|
||||
|
||||
Reference in New Issue
Block a user