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 .
Această întrebare a fost marcată
3
Răspunsuri
12522
Vizualizări
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');
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
1
mai 24
|
9098 | ||
|
|
1
mar. 22
|
5534 | ||
|
Odoo Server error
Rezolvat
|
|
2
mar. 21
|
5484 | |
|
|
2
dec. 16
|
8390 | ||
|
|
2
iul. 15
|
5447 |
I noticed that your accepted answer ratio is 0 / 3 ...
Sorry, Unfortunately no useful answers yet :(