Skip to Content
Menu
This question has been flagged
1 Odpoveď
4062 Zobrazenia

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

Avatar
Zrušiť
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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
mar 15
5329
0
mar 15
3601
1
mar 15
8580
1
jún 19
7057
1
mar 15
8070