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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
1
thg 3 15
|
6949 | |||
|
0
thg 3 15
|
5349 | |||
|
1
thg 3 15
|
10246 | |||
|
1
thg 6 19
|
9160 | |||
|
1
thg 3 15
|
9778 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.