Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4693 Переглядів

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

});

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
серп. 23
194
1
лют. 22
2869
0
серп. 18
5844
0
лют. 18
6534
1
лист. 24
1831