Skip to Content
मेन्यू
This question has been flagged
1 Reply
5099 Views

Hi

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

Thanks in advanced.

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
0
सित॰ 19
98
1
जुल॰ 17
4248
4
अग॰ 16
8467
1
मई 16
5079
2
मार्च 16
7348