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

How to get the id of the current user logged-in to the erp, in the javascript of webmodule . My scenario is like this i want to filter the contents of a listing based on the user logged in .

아바타
취소

I noticed that your accepted answer ratio is 0 / 3 ...

작성자

Sorry, Unfortunately no useful answers yet :(

베스트 답변

Hi,

If you are in back-end get user-id by ['user_id', '=', self.session.uid], or check the context ie, " session.context ".

before that you have to define:-

var session = require('web.session');

아바타
취소
관련 게시물 답글 화면 활동
1
5월 24
6457
1
3월 22
3988
Odoo Server error 해결 완료
2
3월 21
4290
2
12월 16
7160
2
7월 15
4218