Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3741 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 15
4985
0
mar 15
3286
1
mar 15
8226
1
cze 19
6677
1
mar 15
7721