Community mailing list archives

Many2one field filter using child_of user login

Andre Kurniawan
- 09/04/2015 03:05:38

Hello Community,

I have  a Many2one field referenced to model res.users, and I want this field filtered using child_of current user login.

I already tried with [('id', 'child_of',] but it gives me an error:

Error: NameError: name 'user' is not defined.

Is there any way to accomplish this?