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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Mar 15
|
5193 | ||
|
0
Mar 15
|
3460 | ||
|
1
Mar 15
|
8427 | ||
|
1
Jun 19
|
6866 | ||
|
1
Mar 15
|
7925 |