Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
8192 Visualizações

Hi,

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

Avatar
Cancelar
Melhor resposta

        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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
nov. 24
4850
0
mai. 24
1990
1
abr. 24
2007
0
ago. 21
9050
0
jul. 17
2820