Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
11709 Zobrazení

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 .

Avatar
Zrušit

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

Autor

Sorry, Unfortunately no useful answers yet :(

Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 24
6885
1
bře 22
4171
2
bře 21
4450
2
pro 16
7352
2
čvc 15
4385