跳至內容
選單
此問題已被標幟
4813 瀏覽次數

Hello everybody!!!

Can anyone explain to me why didi this query not working please.

I have created a new widget and i need to create a wuery on a model in my odoo session. I have tried this but it doesnt work and i wouldnt understand the source of the problem.

Need your help please.

     new Model('hr.test').query(['name', 'code'])

.filter([['code', '=', 11399]])

.limit(15)

.all().then(function (ret) {

console.log(ret);

var name = ret['name']

});

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 23
194
1
2月 22
3028
0
8月 18
5997
0
2月 18
6666
1
11月 24
2081