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 .
To pytanie dostało ostrzeżenie
3
Odpowiedzi
12416
Widoki
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');
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
1
maj 24
|
9007 | ||
|
|
1
mar 22
|
5447 | ||
|
Odoo Server error
Rozwiązane
|
|
2
mar 21
|
5428 | |
|
|
2
gru 16
|
8290 | ||
|
|
2
lip 15
|
5391 |
I noticed that your accepted answer ratio is 0 / 3 ...
Sorry, Unfortunately no useful answers yet :(