Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
8045 Zobrazení

Hi,

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

Avatar
Zrušit
Nejlepší odpověď

        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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
lis 24
4685
0
kvě 24
1919
1
dub 24
1922
0
srp 21
8930
0
čvc 17
2777