Skip to Content
Menú
This question has been flagged
1 Respondre
5052 Vistes

Hi

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

Thanks in advanced.

Avatar
Descartar
Best Answer

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
Related Posts Respostes Vistes Activitat
0
de set. 19
98
1
de jul. 17
4209
4
d’ag. 16
8422
1
de maig 16
5040
2
de març 16
7313