跳至内容
菜单
此问题已终结
1 回复
4336 查看

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

形象
丢弃
相关帖文 回复 查看 活动
1
3月 15
5663
0
3月 15
3916
1
3月 15
8876
1
6月 19
7357
1
3月 15
8416