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.
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
2
août 25
|
3700 | |||
|
3
févr. 25
|
5276 | |||
|
0
mai 24
|
46 | |||
|
1
avr. 24
|
4548 | |||
|
4
sept. 23
|
6566 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.