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 .
Esta pergunta foi sinalizada
3
Respostas
12553
Visualizações
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');
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
1
mai. 24
|
9207 | ||
|
|
1
mar. 22
|
5615 | ||
|
Odoo Server error
Resolvido
|
|
2
mar. 21
|
5571 | |
|
|
2
dez. 16
|
8440 | ||
|
|
2
jul. 15
|
5515 |
I noticed that your accepted answer ratio is 0 / 3 ...
Sorry, Unfortunately no useful answers yet :(