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
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>
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
1
jul 24
|
4405 | |||
|
3
may 24
|
3234 | |||
|
1
jul 23
|
6684 | |||
|
0
mar 24
|
5613 | |||
|
2
nov 22
|
6029 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.