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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
in your py file
from openerp import models, fields, api, _
from datetime import datetime
AVAILABLE_PRIORITIES = [
('0', 'Very Low'),
('1', 'Low'),
('2', 'Normal'),
('3', 'High'),
('4', 'Very High')]
class Attend(models.Model):
_name="permission.details"
set_priority=fields.Selection(AVAILABLE_PRIORITIES, select=True)
in ur xml file
<field name="set_priority" widget="priority"></field>
Create an account today to enjoy exclusive features and engage with our awesome community!
RegistracijaRelated Posts | Replies | Rodiniai | Veikla | |
---|---|---|---|---|
|
1
liep. 24
|
2121 | ||
|
3
geg. 24
|
1618 | ||
|
1
liep. 23
|
4553 | ||
|
0
kov. 24
|
3340 | ||
|
1
rugs. 22
|
6264 |