Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
8292 Vues

Hi,

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

Avatar
Ignorer
Meilleure réponse

        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
Ignorer
Publications associées Réponses Vues Activité
1
nov. 24
5007
0
mai 24
2147
1
avr. 24
2093
0
août 21
9138
0
juil. 17
2948