Hi,
I want to fetch the state of the active_id using java script. can anyone help how to achieve this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I want to fetch the state of the active_id using java script. can anyone help how to achieve this?
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);
});
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
1
nov. 24
|
6302 | |||
|
0
mai. 24
|
3450 | |||
|
Odoo 14: Reload Point Of Sale
Resolvido
|
1
abr. 24
|
2846 | ||
|
0
ago. 21
|
9900 | |||
|
0
jul. 17
|
3689 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.