İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
8043 Görünümler

Hi,

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

Avatar
Vazgeç
En İyi Yanıt

        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);

});

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 24
4676
0
May 24
1914
1
Nis 24
1920
0
Ağu 21
8920
0
Tem 17
2774