Technical mailing list archives

Re: retrieve user id (uid)

Naresh Soni
- 12/01/2016 09:22:53

You can get from self._uid or self.env.args

Naresh Soni
Founder and Consultant
Cozy Business Solutions Pvt. Ltd
+91 8866 370537

On 1 December 2016 at 18:53, Christian Valsecchi <> wrote:

Hi there,

   We need to retrieve the user id of the logged user in a function in the sale order module.

We need this to get values from another table.


We tried the use self, but is blank. Same issue with the ‘uid’ function parameter.

We also tried to create a function (to retrieve the user id), again no luck.


Any ideas from anybody?



Thanks a lot for your help

Post to: