Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5074 Zobrazení

Hi

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

Thanks in advanced.

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
zář 19
98
1
čvc 17
4224
4
srp 16
8437
1
kvě 16
5052
2
bře 16
7325