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);
});
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
nov 24
|
4671 | ||
|
0
may 24
|
1909 | ||
Odoo 14: Reload Point Of Sale
Resuelto
|
|
1
abr 24
|
1915 | |
|
0
ago 21
|
8914 | ||
|
0
jul 17
|
2765 |