Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4085 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mars 15
5370
0
mars 15
3631
1
mars 15
8605
1
juin 19
7091
1
mars 15
8128