Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5020 Vues

Hi

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

Thanks in advanced.

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
sept. 19
98
1
juil. 17
4198
4
août 16
8411
1
mai 16
5006
2
mars 16
7292