Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
8179 Lượt xem

Hi,

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

});

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 24
4833
0
thg 5 24
1982
1
thg 4 24
2001
0
thg 8 21
9035
0
thg 7 17
2815