跳至內容
選單
此問題已被標幟
1 回覆
8065 瀏覽次數

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
4700
0
5月 24
1926
1
4月 24
1940
0
8月 21
8952
0
7月 17
2784