Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3334 Vistas

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 Mejor respuesta

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