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
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
1
mar 15
|
6959 | |||
|
0
mar 15
|
5351 | |||
|
1
mar 15
|
10251 | |||
|
link a custom field to two tables/modul
Rozwiązane
|
1
cze 19
|
9164 | ||
|
1
mar 15
|
9783 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.