跳至内容
菜单
此问题已终结
1 回复
5041 查看

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'
形象
丢弃
相关帖文 回复 查看 活动
0
9月 19
98
1
7月 17
4207
4
8月 16
8420
1
5月 16
5037
2
3月 16
7311