Hi,
I want to fetch the state of the active_id using java script. can anyone help how to achieve this?
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);
});
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
1
nov. 24
|
7744 | |||
|
0
maj 24
|
5106 | |||
|
1
apr. 24
|
3876 | |||
|
0
aug. 21
|
10844 | |||
|
0
jul. 17
|
4577 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.