İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4103 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 15
5414
0
Mar 15
3644
1
Mar 15
8626
1
Haz 19
7109
1
Mar 15
8166