Skip to Content
Menu
This question has been flagged
3 Replies
11726 Rodiniai

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 .

Portretas
Atmesti

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

Autorius

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
geg. 24
6921
1
kov. 22
4210
2
kov. 21
4464
2
gruod. 16
7374
2
liep. 15
4400