Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5047 Представления

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
4208
4
авг. 16
8422
1
мая 16
5039
2
мар. 16
7311