Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5037 Переглядів

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'
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
вер. 19
98
1
лип. 17
4207
4
серп. 16
8416
1
трав. 16
5037
2
бер. 16
7310