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);
});
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
1
nov 24
|
6364 | |||
|
0
mag 24
|
3497 | |||
|
Odoo 14: Reload Point Of Sale
Risolto
|
1
apr 24
|
2888 | ||
|
0
ago 21
|
9935 | |||
|
0
lug 17
|
3730 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.