Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
8265 Weergaven

Hi,

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

Avatar
Annuleer
Beste antwoord

        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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
nov. 24
4956
0
mei 24
2122
1
apr. 24
2069
0
aug. 21
9123
0
jul. 17
2889