Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
8339 Vistas

Hi,

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

Avatar
Descartar
Mejor respuesta

        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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 24
5085
0
may 24
2192
1
abr 24
2146
0
ago 21
9160
0
jul 17
2976