Skip to Content
Menu
This question has been flagged
1 Odpoveď
8088 Zobrazenia

Hi,

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

Avatar
Zrušiť
Best Answer

        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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
nov 24
4733
0
máj 24
1933
1
apr 24
1953
0
aug 21
8982
0
júl 17
2789