Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4957 Vistas

Hi

Someone has tried to fill a reference field by default? How to do it?

Thanks in advanced.

Avatar
Descartar
Mejor respuesta

Hi @Alexei

The value of the reference fields is composed by the model of the reference selection model and the id of that model. For example to put the user admin value in a reference to res.users as one of the possible models, you could put it like this:

'res.users,1'
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 19
98
1
jul 17
4113
4
ago 16
8308
1
may 16
4928
2
mar 16
7212