콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
8201 화면

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
4862
0
5월 24
2000
1
4월 24
2012
0
8월 21
9054
0
7월 17
2821