Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
8258 Visninger

Hi,

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

Avatar
Kassér
Bedste svar

        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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
nov. 24
4952
0
maj 24
2111
1
apr. 24
2059
0
aug. 21
9120
0
jul. 17
2887