Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4698 Prikazi

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

});

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
avg. 23
194
1
feb. 22
2883
0
avg. 18
5851
0
feb. 18
6545
1
nov. 24
1843