How to get the current user id in an Odoo Web Controller ?
신고된 질문입니다
2
답글
26361
화면
Hi Yenthe,
In Odoo 8, inside a web controller it doesn't work for me and I'm using that codes instead :
request.uid
or
request.session.uid
Regards,
Slim
Hi Slim,
You can get the user his id out of the environment its context like this:
http.request.env.context.get('uid')Regards,
Yenthe
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
1
11월 25
|
4965 | ||
|
|
4
11월 25
|
5157 | ||
|
|
1
6월 23
|
4514 | ||
|
|
0
7월 22
|
3757 | ||
|
Odoo? Why this new name?
해결 완료
|
|
3
9월 21
|
28108 |
Refer this: http://bit.ly/get-current-logged-in-user-id-in-odoo