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);
});
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Nov 24
|
4641 | ||
|
0
May 24
|
1888 | ||
|
1
Apr 24
|
1909 | ||
|
0
Aug 21
|
8887 | ||
|
0
Jul 17
|
2740 |