Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
11704 Weergaven

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
Annuleer

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

Auteur

Sorry, Unfortunately no useful answers yet :(

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mei 24
6882
1
mrt. 22
4169
2
mrt. 21
4446
2
dec. 16
7350
2
jul. 15
4385