There are many widgets present in the Odoo user interface to perform different functionalities. Status bar, Checkboxes, Radio button, etc. make the operations in Odoo simpler. In this blog, I will be explaining about different default widgets in Odoo, its purpose, and its implementation syntax.
You can also have look Odoo 13 new widgets blog
1. Ribbon Widget
2. Calculator Widget
This field displays a list of checkboxes. Usually used to display one or more related items. See fig.
Use widget=’many2many_checkboxes’, to get the many2many checkbox effect.
Used to display the status of a process. We can use widget=’statusbar’ to get the Status Bar effect.
The widget is used to display a progress chart. We can use widget=’percentpie’ to get the effect. This widget is applicable for both integer and float field. Float value will be converted into an integer value.
is similar to ‘Percentpie’. You can use the Use widget=’guage’ to get the Guage effect. But in the case of gauge, you have to add another field, for the maximum value. Set the following option in the XML code.
<field name="entry_progress"widget="gauge" style="width:120px;height:90px;cursor:pointer;"
Here ‘maximum_rate’ is an integer field.
Progressbar or Progress
Displays the progress of a process. Use widget=’progressbar’ to get the effect.
Similar to the many2many checkbox, but it displays multiple items as tags. (see the fig). Use widget=’many2many_tags’ to get the effect.
This widget is used to drag the lineup and down. This widget is mainly applicable to the tree view. We can use widget=’handle’ to get the effect.
Many2many_binary filed will provide an option to upload a file and view the preview. The widget is available only for the binary fields. Use widget=’many2many_binary’ to get the following effect.
Use widget=’many2many_kanban’ to get the many2many kanban effect. We can set ‘many2many’ fields as kanban view by using ‘many2many_kanban’ widget.
Mail Followers & Mail Thread
We track every model using the ‘mail_followers’ widget. Use widget=’mail_folowers’ to get the effect.
Displays a list of items. Use widget=’selection’ to get the effect. It is applicable only for ‘many2one’ field
Use widget=’radio’ to get the radio button effect.
Use widget=’float_time’ to get the float time effect. You have to define the field type as ‘float’.
Use widget=’image’ to get an Image widget. This widget is used for the binary field.
If we set the widget as ‘email’ for a character field the character will be displayed as an email link. When the user clicks on the data field it will redirect to compose mail form. We can use widget=’email’ to get the effect.
If we use the mobile app, then we can directly dial the number to the clipboard by using widget=’phone’.
The field allows the user to append currency with our amount. Use widget=’monetary’ to get the monetary effect
If we set the widget as URL for a character field the character will be displayed as a hyperlink. Use widget=’url’
The widget displays checkboxes. Use the widget=’checkbox’ to get the effect.
A fieldset as the integer will allow only integer values. .We can use widget=’integer’ to get the effect.
We can use widget=’date’ to get the following effect. It will convert the DateTime field into the date field.
We can use widget=’html’ to get the following effect.
We can use widget=’html_frame’ to get the HTML frame effect. Here we will get the default frame for our field.
Use widget=’priority’ to get the priority widget.
The boolean_button is useful to set toggle value for the field. Use widget=’boolean_button’ to get the field.
We can use widget=’upgrade_boolean’ to get the following effect. When we click on the field of ‘upgrade_boolean’ widget, then it will pop up the window as below.
We can use widget=’upgrade_radio’ to get the following effect.
We can set the domain for a particular field using ’char_domain’ widget. Use widget=’char_domain’ to get the effect
Use widget=’statinfo’ to get the following effect. The widget will display the count.
Use the widget=’many2manyattendee’ to get the following effect.
Use widget=’one2many’ to get the following effect.
Use widget=’one2many_list’ to get the following effect.
Widget on Button
We can use widget=’widgetonbutton’ for the following effect.
widget=’website_button’ will give you the following effect.
Read Latest Version of Blog