Odoo Help

0

Selcetion Fields With Many2One RelationShip ?

By
Ali Abdelmonem Mustafa Amer
on 11/9/13, 5:46 PM 1,082 views

Hi All

I Want To Create Two Objects With Relation (User , Gender ) And I Want The User Choose The Gender From Field Selection How Can I Do It Thanks

1
Grover Menacho
On 11/10/13, 9:11 PM

You can do it with only a selection field for gender. You have to use many2one in case of you have the possibility of adding more genders, but since it's limited you can do a selection field:

'gender': fields.selection([('male', 'Male'),('female','Female')], 'Gender'),

and that's all

About This Community

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

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 11/9/13, 5:46 PM
Seen: 1082 times
Last updated: 3/16/15, 8:10 AM