Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3979 Zobrazení

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šit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
5286
0
bře 15
3522
1
bře 15
8482
1
čvn 19
6944
1
bře 15
7985