Community mailing list archives

community@mail.odoo.com

Many2one field filter using child_of user login

by
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', user.id)] but it gives me an error:

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


Is there any way to accomplish this?

-- 
Regards,
Andre