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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
3
Replies
11715
Views
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');
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 24
|
6893 | ||
|
1
Mar 22
|
4176 | ||
Odoo Server error
Solved
|
|
2
Mar 21
|
4457 | |
|
2
Dec 16
|
7355 | ||
|
2
Jul 15
|
4388 |
I noticed that your accepted answer ratio is 0 / 3 ...
Sorry, Unfortunately no useful answers yet :(