[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:
Barad Mahendra
2021-03-22 08:42:04 +00:00
parent a6ae6d8217
commit 9a57330d06
4 changed files with 81 additions and 0 deletions
+13
View File
@@ -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.