Odoo Help


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.


how to use priority widget in many2one field ?

Ankit H Gandhi(AHG)
on 2/9/15, 5:51 AM 1,613 views

Hello Friends,

     We can use priority widget in selection field,but I want to use priority widget in many2one field.

     anyone give me suggestion how i use priority widget in many2one field

     thanks in advance

Demirel yakito
On 2/9/15, 6:01 AM

in your py file

from openerp import models, fields, api, _
from datetime import datetime
    ('0', 'Very Low'),
    ('1', 'Low'),
    ('2', 'Normal'),
    ('3', 'High'),
    ('4', 'Very High')]

class Attend(models.Model):

    set_priority=fields.Selection(AVAILABLE_PRIORITIES, select=True)


in ur xml file

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

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

1 follower(s)


Asked: 2/9/15, 5:51 AM
Seen: 1613 times
Last updated: 3/16/15, 8:10 AM