How can i define a dynamic selection field where the user can add new items that are not predefined this code define a static selection field:
score:field.selection([('key1','value1').....],string='score'),
How can i define a dynamic selection field where the user can add new items that are not predefined this code define a static selection field:
score:field.selection([('key1','value1').....],string='score'),
Hi, try this:
def _dinamic_selection(self):
list_field = []
# add elementos to list
return list_field
_columns = {
'field_selecction' : fields.selection('_dinamic_selection', 'Dinamic Field Selection'),
}
I hope you help, regards.
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
2
aug. 25
|
4781 | |||
|
3
feb. 25
|
6553 | |||
|
0
maj 24
|
46 | |||
|
1
apr. 24
|
6071 | |||
|
4
sep. 23
|
7683 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.