Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
8039 Vizualizări

Hi,

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

Imagine profil
Abandonează
Cel mai bun răspuns

        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);

});

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
nov. 24
4672
0
mai 24
1911
1
apr. 24
1918
0
aug. 21
8917
0
iul. 17
2770