Hi
Someone has tried to fill a reference field by default? How to do it?
Thanks in advanced.
Hi
Someone has tried to fill a reference field by default? How to do it?
Thanks in advanced.
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'
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
0
sep. 19
|
98 | |||
|
1
jul. 17
|
6032 | |||
|
4
aug. 16
|
10868 | |||
|
1
maj 16
|
7100 | |||
|
2
mar. 16
|
9067 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.