コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
11694 ビュー

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 .

アバター
破棄

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

著作者

Sorry, Unfortunately no useful answers yet :(

最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 24
6866
1
3月 22
4162
2
3月 21
4442
2
12月 16
7338
2
7月 15
4381