Skip to Content
Menú
This question has been flagged
1 Respondre
3340 Vistes

I know if you write the code :

'aa':fields.many2one('res.users','b',required=True),

,you can select the users'name.

But if I want to selece the users's login (field = login),how can i collect? I try to write like this :

'aa':fields.many2one('res.users.login','b',required=True),

But it also failure..

Avatar
Descartar
Autor Best Answer

Maybe I should write related? like :

'aa':fields.related('login', 'aa', type = 'many2one', ralation ='res.users', string= 'b', required=True),

But it can't work

Avatar
Descartar