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

Hi,

I want to fetch the state of the active_id using java script. can anyone help how to achieve this?

الصورة الرمزية
إهمال
أفضل إجابة

        fetch: function(model, fields, domain, ctx){
            return new instance.web.Model(model).query(fields).filter(domain).context(ctx).all()
        },

Make use of the above fetch function you can fetch data.

Example:

self.fetch('res.users',['name','company_id'],[['id','=',this.session.uid]]).then(function(users){

console.log("This is the User",users);

});

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 24
4865
0
مايو 24
2004
1
أبريل 24
2013
0
أغسطس 21
9058
0
يوليو 17
2822