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 .
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
3
Replies
11730
Tampilan
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');
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
How to create anchor on Odoo 16 website module?
Diselesaikan
|
|
1
Mei 24
|
6930 | |
|
1
Mar 22
|
4214 | ||
Odoo Server error
Diselesaikan
|
|
2
Mar 21
|
4465 | |
|
2
Des 16
|
7376 | ||
|
2
Jul 15
|
4404 |
I noticed that your accepted answer ratio is 0 / 3 ...
Sorry, Unfortunately no useful answers yet :(