コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5098 ビュー

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
4248
4
8月 16
8465
1
5月 16
5078
2
3月 16
7347