Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
11606 Ansichten

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
Verwerfen

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

Autor

Sorry, Unfortunately no useful answers yet :(

Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Mai 24
6541
1
März 22
4024
2
März 21
4302
2
Dez. 16
7180
2
Juli 15
4260