Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8204 มุมมอง

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

});

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 24
4865
0
พ.ค. 24
2004
Odoo 14: Reload Point Of Sale แก้ไขแล้ว
1
เม.ย. 24
2013
0
ส.ค. 21
9058
0
ก.ค. 17
2822