Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
11712 Widoki

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 .

Awatar
Odrzuć

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

Autor

Sorry, Unfortunately no useful answers yet :(

Najlepsza odpowiedź

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');

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 24
6888
1
mar 22
4173
2
mar 21
4451
2
gru 16
7353
2
lip 15
4385