跳至内容
菜单
此问题已终结
1 回复
3335 查看

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..

形象
丢弃
编写者 最佳答案

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

形象
丢弃