+ All Categories
Home > Business > Widgets in odoo

Widgets in odoo

Date post: 24-Jan-2018
Category:
Upload: celine-george
View: 685 times
Download: 5 times
Share this document with a friend
25
www.cybrosys.com Widgets In Odoo
Transcript
Page 2: Widgets in odoo

INTRODUCTION There are many widgets present in 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 implementation syntax..

Page 3: Widgets in odoo

1. Many2many Checkboxes

This field displays a list of checkboxes. Usually used to display one or more related items. See the fig.

Use widget=’many2many_checkboxes’, to get the many2many checkbox effect.

Page 4: Widgets in odoo

2. Statusbar

Used to display the status of a process. We can use widget=’statusbar’ to get the Status Bar effect.

3.Percentpie

The widget is used for to display 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

Page 5: Widgets in odoo

4. Guage

Guage is similar to ‘Percentpie’. You can use 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 XML code.

<field name="entry_progress" widget="gauge"

style="width:120px;height:90px;cursor:pointer;"

options="{'max_field': 'maximum_rate'}">

Entry Progress

</field>

Here ‘maximum_rate’ is an integer field.

Page 6: Widgets in odoo

5. Progressbar or Progress

Displays the progress of a process. Use widget=’progressbar’ to get the effect.

6. Many2many TagsSimilar to the many2many checkbox, but it displays multiple items as tags. (see the fig). Use

widget=’many2many_tags’ to get the effect.

Page 7: Widgets in odoo

7. HandleThis widget is used to drag the line up and down. This widget is mainly applicable to tree view. We can use

widget=’handle’ to get the effect.

8. Many2many BinaryMany2many_binary filed will provide an option to upload a file and view the preview. The widget is

available only for binary field. Use widget=’many2many_binary’ to get the following effect.

Page 8: Widgets in odoo

9. Many2many KanbanUse widget=’many2many_kanban’ to get the many2many kanban effect. We can set ‘many2many’

fields as kanban view by using ‘many2many_kanban’ widget.

Page 9: Widgets in odoo

10.Mail Followers & Mail ThreadWe track every model using the ‘mail_followers’ widget.

Use widget=’mail_folowers’ to get the effect.

Page 10: Widgets in odoo

11.SelctionDisplays a list of items. Use widget=’selection’ to get the effect. It is applicable only for ‘many2one’ field

12.RadioUse widget=’radio’ toge the radio button effect.

Page 11: Widgets in odoo

13.Float TimeUse widget=’float_time’ to get the float time effect. You have to define the field type as ‘float’

14.ImageUse widget=’image’ to get an Image widget. . This widget is used for binary field.

Page 12: Widgets in odoo

15.EmailIf 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.

16.PhoneIf we use mobile app, then we can directly dial the number to clipboard by using widget=’phone’.

17.Monetary. The field allows the user to append currency with our amount. Use widget=’monetary’ to get the monetary

effect

Page 13: Widgets in odoo

18.URLIf we set the widget as url for a character field the character will be displayed as hyperlink. Use widget=’url’

19.CheckboxThe widget displays checkboxes. Use the widget=’checkbox’ to get the effect.

Page 14: Widgets in odoo

20.IntegerA field set as integer will allow only integer values. .We can use widget=’integer’ to get the

effect.

21.Date

We can use widget=’date’ to get the following effect. It will convert the datetime field into date field.

Page 15: Widgets in odoo

22.HtmlWe can use widget=’html’ to get the following effect.

23.Html FrameWe can use widget=’html_frame’ to get the html frame effect. Here we will get the default frame

for our field.

Page 16: Widgets in odoo

24.PriorityUse widget=’priority’ to get the priority widget.

Page 17: Widgets in odoo

25.Boolean Button

Teh boolean_button is useful to set toggle value for the field. Use widget=’boolean_button’ to get the field.

26.Upgrade BooleanWe 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..

Page 18: Widgets in odoo

27.Upgrade RadioWe can use widget=’upgrade_radio’ to get the following effect.

Page 19: Widgets in odoo

28.Char DomainWe can set the domain for a particular field using ’char_domain’ widget. Use widget=’char_domain’

to get the effect

29.StatinfoUse widget=’statinfo’ to get the following effect. The widget will display the count.

Page 20: Widgets in odoo

30.Many2many AttendeeUse the widget=’many2manyattendee’ to get the following effect.

Page 21: Widgets in odoo

31.On2manyUse widget=’one2many’ to get the following effect.

Page 22: Widgets in odoo

32.One2many ListUse widget=’one2many_list’ to get the following effect.

33.Widget on Button

We can use widget=’widgetonbutton’ for the following effect.

Page 23: Widgets in odoo

34.Website Buttonwidget=’website_button’ will give you the following effect.

Page 24: Widgets in odoo

Refer this link for more:

https://www.cybrosys.com/blog/widgets-in-odoo

Page 25: Widgets in odoo

Thank You !

Cybrosys Technologies Pvt. Ltd.Neospace, Kinfra Techno Park,Kakkancherry,Calicut University P.O.CalicutKerala, India - 673635.

Cybrosys Ltd15, ST Antonys Road,Forest Gate, LondonEngland,E79QA.

Cybrosys Technologies Pvt. Ltd.1st Floor, Thapasya Building,Infopark, Kakkanad,Kochi, Kerala,India-682030.


Recommended