Hi all,
I'm trying to create a list where the user can choose from a set of options (like in field = selectable), but with the added option for the user to create a new one if it's needed.
Any ideas on how to accomplish this easily?
Alex.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi all,
I'm trying to create a list where the user can choose from a set of options (like in field = selectable), but with the added option for the user to create a new one if it's needed.
Any ideas on how to accomplish this easily?
Alex.
Hello Alex,
Just create new model with name (single) field and put m2o field and keep option enable(create and edit) in lookpup(by default its enabled) so user can select or create as per choice.
Hello Alex,
you can use following structure for selection field in odoo
my_selection_field = fields.Selection([('option1', 'Label 1'), ('option2', 'Label 2')], string='My Selection Field')
Regards,
Ankit Vaghela
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ść | |
|---|---|---|---|---|
|
2
gru 25
|
3599 | |||
|
2
gru 25
|
142 | |||
|
3
maj 25
|
3580 | |||
|
1
kwi 25
|
2516 | |||
|
one2one relational field
Rozwiązane
|
3
wrz 24
|
16365 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.