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 .
Cette question a été signalée
3
Réponses
12381
Vues
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');
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
mai 24
|
8994 | ||
|
|
1
mars 22
|
5429 | ||
|
Odoo Server error
Résolu
|
|
2
mars 21
|
5403 | |
|
|
2
déc. 16
|
8274 | ||
|
|
2
juil. 15
|
5374 |
I noticed that your accepted answer ratio is 0 / 3 ...
Sorry, Unfortunately no useful answers yet :(