Odoo Help

3

User Id in javascript

By
A V
on 9/19/13, 11:01 AM 1,975 views

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 .

I noticed that your accepted answer ratio is 0 / 3 ...

Daniel Reis
on 9/19/13, 11:06 AM

Sorry, Unfortunately no useful answers yet :(

A V
on 9/21/13, 3:33 AM

If so you don't have the basic knowledge of BackboneJs

Hilar
on 2/15/17, 4:33 AM
2
Hilar
On 2/9/17, 2:18 AM

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');

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 9/19/13, 11:01 AM
Seen: 1975 times
Last updated: 3/13/17, 9:56 AM