Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5845 Tampilan

Hi

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

Thanks in advanced.

Avatar
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Sep 19
98
1
Jul 17
4954
4
Agu 16
9336
1
Mei 16
5779
2
Mar 16
8012