Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
8096 Visualizzazioni

Hi,

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

Avatar
Abbandona
Risposta migliore

        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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
nov 24
4740
0
mag 24
1938
1
apr 24
1957
0
ago 21
8986
0
lug 17
2798