Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4696 Lượt xem

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']

});

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 23
194
1
thg 2 22
2877
0
thg 8 18
5846
0
thg 2 18
6541
1
thg 11 24
1835