Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to select the users'login instead users'name

By
CK
on 4/11/13, 12:20 AM 622 views

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

0
CK
On 4/11/13, 1:32 AM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/11/13, 12:20 AM
Seen: 622 times
Last updated: 3/16/15, 8:10 AM