How can i search or get the field "id" from table "res_users" of the one that is currently logged in
How can i search or get the field "id" from table "res.users" of the one that is currently logged in.
i tried this one. my_id=self.pool.get('res.users').search(cr,uid,['id','=','id']), but it returns all records id ( i want the id only of the account im using currently)
because i want to use this "my_id" as a indicator where i will write my data in future.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 9/23/14, 9:12 PM|
|Seen: 590 times|
|Last updated: 3/16/15, 8:10 AM|