Skip to Content
Menú
This question has been flagged
1 Respondre
3933 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
1
de març 15
5198
0
de març 15
3464
1
de març 15
8429
1
de juny 19
6869
1
de març 15
7929