Skip to Content
मेन्यू
This question has been flagged
1 Reply
8246 Views

Hi,

I want to fetch the state of the active_id using java script. can anyone help how to achieve this?

Avatar
Discard
Best Answer

        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);

});

Avatar
Discard
Related Posts Replies Views Activity
1
नव॰ 24
4937
0
मई 24
2095
1
अप्रैल 24
2050
0
अग॰ 21
9109
0
जुल॰ 17
2881