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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se| Related Posts | Odpovědi | Zobrazení | Aktivita | |
|---|---|---|---|---|
|
2
srp 25
|
3697 | |||
|
3
úno 25
|
5273 | |||
|
0
kvě 24
|
46 | |||
|
1
dub 24
|
4538 | |||
|
4
zář 23
|
6537 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.