Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
11716 มุมมอง

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
6893
1
มี.ค. 22
4176
Odoo Server error แก้ไขแล้ว
2
มี.ค. 21
4457
2
ธ.ค. 16
7355
2
ก.ค. 15
4388