Skip to Content
Menu
This question has been flagged
1 Atsakyti
4280 Rodiniai

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

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 15
5593
0
kov. 15
3815
1
kov. 15
8812
1
birž. 19
7270
1
kov. 15
8310