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
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
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
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
1
mars 15
|
7007 | |||
|
0
mars 15
|
5377 | |||
|
1
mars 15
|
10289 | |||
|
1
juin 19
|
9197 | |||
|
1
mars 15
|
9837 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.