Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4080 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mar. 15
5368
0
mar. 15
3631
1
mar. 15
8601
1
jun. 19
7079
1
mar. 15
8120