Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
11695 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
трав. 24
6866
1
бер. 22
4162
Odoo Server error Вирішено
2
бер. 21
4442
2
груд. 16
7338
2
лип. 15
4381