Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
8167 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
4818
0
Mei 24
1977
1
Apr 24
1995
0
Agu 21
9032
0
Jul 17
2815