Odoo Help


how to use priority widget in many2one field ?

Ankit H Gandhi(AHG)
on 2/9/15, 5:51 AM 3,690 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>

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 2/9/15, 5:51 AM
Seen: 3690 times
Last updated: 6/8/17, 10:28 AM