Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
11693 Vues

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
Ignorer

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

Auteur

Sorry, Unfortunately no useful answers yet :(

Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mai 24
6864
1
mars 22
4161
2
mars 21
4442
2
déc. 16
7338
2
juil. 15
4380