Webfrontend #711
Centralize form option lists
Status: | Neu | Start date: | ||
---|---|---|---|---|
Priority: | Niedrig | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | Estimated time: | 1.00 h | |
Target version: | Repertoire 3) Testing phase III |
Description
Right now, there are multiple places for form options:
Sometimes there are multiple definitions of the same option list. It would be best, if we could just fetch the list from the tryton model itself (well, it's a tuple both in pyramid and tryton), but then we loose the possibility to translate the values.
I propose a central "views/forms/options.py", in which all options are declared and from where it should be imported by form controllers, api, etc.
History
#1 Updated by Alexander Blum over 4 years ago
- Estimated time set to 1.00
#2 Updated by Alexander Blum almost 4 years ago
- Target version changed from 3) Testing phase III to Repertoire 3) Testing phase III
#3 Updated by Alexander Blum almost 4 years ago
- Project changed from repertoire to collecting_society