Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
11585 Visninger

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
Kassér

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

Forfatter

Sorry, Unfortunately no useful answers yet :(

Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
maj 24
6429
1
mar. 22
3962
2
mar. 21
4250
2
dec. 16
7151
2
jul. 15
4211