Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
11705 Visualizzazioni

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
Abbandona

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

Autore

Sorry, Unfortunately no useful answers yet :(

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 24
6882
1
mar 22
4169
2
mar 21
4446
2
dic 16
7350
2
lug 15
4385