mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 03:30: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 information."""
|
||||||
|
|
||||||
# InvenTree API version
|
# 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."""
|
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||||
|
|
||||||
INVENTREE_API_TEXT = """
|
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
|
v356 -> 2025-06-20 : https://github.com/inventree/InvenTree/pull/9817
|
||||||
- Enable generation of reports against the Company model type
|
- Enable generation of reports against the Company model type
|
||||||
|
|
||||||
|
@ -213,6 +213,7 @@ class GenericReferencedSettingSerializer(SettingsSerializer):
|
|||||||
'model_filters',
|
'model_filters',
|
||||||
'api_url',
|
'api_url',
|
||||||
'typ',
|
'typ',
|
||||||
|
'units',
|
||||||
'required',
|
'required',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ class SampleIntegrationPlugin(
|
|||||||
'description': _('A numerical setting'),
|
'description': _('A numerical setting'),
|
||||||
'validator': int,
|
'validator': int,
|
||||||
'default': 123,
|
'default': 123,
|
||||||
|
'units': 'metres',
|
||||||
},
|
},
|
||||||
'CHOICE_SETTING': {
|
'CHOICE_SETTING': {
|
||||||
'name': _('Choice Setting'),
|
'name': _('Choice Setting'),
|
||||||
|
Reference in New Issue
Block a user