تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
11703 أدوات العرض

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
مايو 24
6879
1
مارس 22
4168
Odoo Server error تم الحل
2
مارس 21
4446
2
ديسمبر 16
7350
2
يوليو 15
4384