Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
8527 Tampilan

Hi,

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

Avatar
Buang
Jawaban Terbai

        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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Nov 24
5394
0
Mei 24
2519
1
Apr 24
2311
0
Agu 21
9344
0
Jul 17
3163