Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5417 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
4570
4
ago 16
8812
1
mag 16
5381
2
mar 16
7612