mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
Enable 'units' field for plugin settings (#9856)
* Enable 'units' field for plugin settings * Bump API version
This commit is contained in:
@ -1,11 +1,15 @@
|
||||
"""InvenTree API version information."""
|
||||
|
||||
# InvenTree API version
|
||||
INVENTREE_API_VERSION = 356
|
||||
INVENTREE_API_VERSION = 357
|
||||
|
||||
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||
|
||||
INVENTREE_API_TEXT = """
|
||||
|
||||
v357 -> 2025-06-25 : https://github.com/inventree/InvenTree/pull/9856
|
||||
- Adds "units" field to PluginSetting API endpoints
|
||||
|
||||
v356 -> 2025-06-20 : https://github.com/inventree/InvenTree/pull/9817
|
||||
- Enable generation of reports against the Company model type
|
||||
|
||||
|
@ -213,6 +213,7 @@ class GenericReferencedSettingSerializer(SettingsSerializer):
|
||||
'model_filters',
|
||||
'api_url',
|
||||
'typ',
|
||||
'units',
|
||||
'required',
|
||||
]
|
||||
|
||||
|
@ -64,6 +64,7 @@ class SampleIntegrationPlugin(
|
||||
'description': _('A numerical setting'),
|
||||
'validator': int,
|
||||
'default': 123,
|
||||
'units': 'metres',
|
||||
},
|
||||
'CHOICE_SETTING': {
|
||||
'name': _('Choice Setting'),
|
||||
|
Reference in New Issue
Block a user