تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4695 أدوات العرض

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
أغسطس 23
194
1
فبراير 22
2876
0
أغسطس 18
5845
0
فبراير 18
6541
1
نوفمبر 24
1835