跳至内容
菜单
此问题已终结
1 回复
8113 查看

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
4757
0
5月 24
1950
1
4月 24
1967
0
8月 21
9000
0
7月 17
2800