Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5062 Weergaven

Hi

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

Thanks in advanced.

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 19
98
1
jul. 17
4219
4
aug. 16
8428
1
mei 16
5046
2
mrt. 16
7319