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

My code:

 var res = rpc.query({
            model: 'my model',
            method: 'read',
            args: [????]
        }).then(function (data) {
            console.log(data); });
        };
アバター
破棄
著作者

Thanks, i will try.

最善の回答

Hi @Pavel

You could do it like this:

var model = 'res.partner';
// Use an empty array to search for all the records
var domain = [];
// Use an empty array to read all the fields of the records
var fields = [];
rpc.query({
model: model,
method: 'search_read',
args: [domain, fields],
}).then(function (data) {
console.log(data);
});
アバター
破棄

Hi, is the domain the id of the record from model?

関連投稿 返信 ビュー 活動
1
6月 18
4316
0
12月 20
2294
2
1月 23
5277
0
2月 21
3418
1
5月 20
4134