Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5053 Widoki

Hi

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

Thanks in advanced.

Awatar
Odrzuć
Najlepsza odpowiedź

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'
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 19
98
1
lip 17
4209
4
sie 16
8422
1
maj 16
5040
2
mar 16
7313