Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
11706 Представления

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
6883
1
мар. 22
4170
Odoo Server error Решено
2
мар. 21
4448
2
дек. 16
7350
2
июл. 15
4385