Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5070 Visualizzazioni

Hi

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

Thanks in advanced.

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
set 19
98
1
lug 17
4223
4
ago 16
8435
1
mag 16
5051
2
mar 16
7324