diff --git a/src/backend/InvenTree/InvenTree/api_version.py b/src/backend/InvenTree/InvenTree/api_version.py index 93ef2a40cb..149a97adb9 100644 --- a/src/backend/InvenTree/InvenTree/api_version.py +++ b/src/backend/InvenTree/InvenTree/api_version.py @@ -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 diff --git a/src/backend/InvenTree/common/serializers.py b/src/backend/InvenTree/common/serializers.py index 14bb29314f..27a4c14e78 100644 --- a/src/backend/InvenTree/common/serializers.py +++ b/src/backend/InvenTree/common/serializers.py @@ -213,6 +213,7 @@ class GenericReferencedSettingSerializer(SettingsSerializer): 'model_filters', 'api_url', 'typ', + 'units', 'required', ] diff --git a/src/backend/InvenTree/plugin/samples/integration/sample.py b/src/backend/InvenTree/plugin/samples/integration/sample.py index 1516171342..95177fd7a4 100644 --- a/src/backend/InvenTree/plugin/samples/integration/sample.py +++ b/src/backend/InvenTree/plugin/samples/integration/sample.py @@ -64,6 +64,7 @@ class SampleIntegrationPlugin( 'description': _('A numerical setting'), 'validator': int, 'default': 123, + 'units': 'metres', }, 'CHOICE_SETTING': { 'name': _('Choice Setting'),