Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3385 Vistas

Example i have 5 fields 

my last 5th field depended other fields 

like this 

First Fields is Department selection is IT Department Account Department Etc ....

In Department is Selection like Software Section / Hardware Selection in IT Department 

In Selection Designation Software Engineer etc etc ....

if any of value miss show all employee list ... in my employee field


Avatar
Descartar
Mejor respuesta

You can return a domain in onchange of your fields. eg:

return {'domain': {'field_name': [domain]}}

Avatar
Descartar
Mejor respuesta

You can return like this,

return {'domain':{'field_name': [('field_name', '=', self.field_name)]}}


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
jul 25
4297
0
may 25
880
2
mar 24
2151
0
ene 23
1740
1
nov 22
3198