Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

how to display priority widget in website ?

By
aneesh ATEES Infomedia Pvt Ltd
on 9/3/15, 1:55 AM 446 views

How to show the priority widget icon in website

0

Ankit H Gandhi(AHG)

--Ankit H Gandhi(AHG)--
996
| 5 3 6
Rajkot, India
--Ankit H Gandhi(AHG)--

Learning Python..

Ankit H Gandhi(AHG)
On 9/13/15, 9:13 AM

Dear aneesh,

Generally priority widget use in selection field data type. 

Here Given simple example of how to use priority widget.  

Step-1

in python file.

AVAILABLE_PRIORITIES = [

('0', 'Very Low'),

('1', 'Low'),

('2', 'Normal'),

('3', 'High'),

('4', 'Very High'),

]

'priority': fields.selection(AVAILABLE_PRIORITIES, 'Priority')

Step-2 

in XML file

<field name="priority" widget="priority"/>

Now may be you can use priority widget

Thanks & Regards  

Ankit H Gandhi

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 9/3/15, 1:55 AM
Seen: 446 times
Last updated: 9/14/15, 2:49 AM