Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odgovori
11675 Prikazi

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
Opusti

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

Avtor

Sorry, Unfortunately no useful answers yet :(

Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
maj 24
6772
1
mar. 22
4144
2
mar. 21
4408
2
dec. 16
7301
2
jul. 15
4361