İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5134 Görünümler

Hi

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

Thanks in advanced.

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eyl 19
98
1
Tem 17
4281
4
Ağu 16
8492
1
May 16
5112
2
Mar 16
7370