Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
5363 Ansichten

Hi

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

Thanks in advanced.

Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Sept. 19
98
1
Juli 17
4521
4
Aug. 16
8744
1
Mai 16
5324
2
März 16
7563