コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
8190 ビュー

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

});

アバター
破棄
関連投稿 返信 ビュー 活動
1
11月 24
4849
0
5月 24
1990
1
4月 24
2006
0
8月 21
9050
0
7月 17
2820