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 .
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
3
답글
11737
화면
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
|
6947 | ||
|
1
3월 22
|
4217 | ||
Odoo Server error
해결 완료
|
|
2
3월 21
|
4468 | |
|
2
12월 16
|
7377 | ||
|
2
7월 15
|
4412 |
I noticed that your accepted answer ratio is 0 / 3 ...
Sorry, Unfortunately no useful answers yet :(