Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
8032 Widoki

Hi,

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

});

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 24
4662
0
maj 24
1899
1
kwi 24
1914
0
sie 21
8894
0
lip 17
2748