Skip to Content
मेन्यू
This question has been flagged
1 Reply
3957 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

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
1
मार्च 15
5253
0
मार्च 15
3507
1
मार्च 15
8463
1
जून 19
6927
1
मार्च 15
7975