Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4803 Widoki

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

});

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 23
194
1
lut 22
3026
0
sie 18
5995
0
lut 18
6665
1
lis 24
2075