From 22f6be688244fc1b1f7cb716e5a31cad28da3c3a Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 27 Nov 2025 22:49:22 +0000 Subject: [PATCH] Fixes --- docs/docs/app/barcode.md | 2 +- docs/docs/start/docker_install.md | 2 +- .../InvenTree/plugin/base/integration/ValidationMixin.py | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/docs/app/barcode.md b/docs/docs/app/barcode.md index 5f470b3391..2645287f76 100644 --- a/docs/docs/app/barcode.md +++ b/docs/docs/app/barcode.md @@ -73,7 +73,7 @@ the *Scan Items Into Location* action allows you to scan items into the selected ### Stock Item Actions -From the [Stock Item detail page](./stock.md#stock-item-detail-view), the following barcode actions may be available: +From the [Stock Item detail page](./stock.md#details-tab), the following barcode actions may be available: {{ image("app/barcode_stock_item_actions.png", "Stock item barcode actions") }} diff --git a/docs/docs/start/docker_install.md b/docs/docs/start/docker_install.md index 0e53c85f7d..ad85ade74e 100644 --- a/docs/docs/start/docker_install.md +++ b/docs/docs/start/docker_install.md @@ -245,7 +245,7 @@ This can be adjusted using the following environment variables: | INVENTREE_WEB_ADDR | 0.0.0.0 | | INVENTREE_WEB_PORT | 8000 | -These variables are combined in the [Dockerfile](../../../contrib/container/Dockerfile) to build the bind string passed to the InvenTree server on startup. +These variables are combined in the [Dockerfile]({{ sourcefile("contrib/container/Dockerfile") }}) to build the bind string passed to the InvenTree server on startup. To enable IPv6/Dual Stack support, set `INVENTREE_WEB_ADDR` to `[::]` when you create/start the container. diff --git a/src/backend/InvenTree/plugin/base/integration/ValidationMixin.py b/src/backend/InvenTree/plugin/base/integration/ValidationMixin.py index c67b88738e..134c2206a6 100644 --- a/src/backend/InvenTree/plugin/base/integration/ValidationMixin.py +++ b/src/backend/InvenTree/plugin/base/integration/ValidationMixin.py @@ -5,6 +5,7 @@ from typing import Optional from django.core.exceptions import ValidationError from django.db.models import Model +import common.models import part.models import stock.models from plugin import PluginMixinEnum @@ -227,7 +228,9 @@ class ValidationMixin: """ return None - def validate_parameter(self, parameter, data: str) -> Optional[bool]: + def validate_parameter( + self, parameter: common.models.Parameter, data: str + ) -> Optional[bool]: """Validate a parameter value. Arguments: @@ -240,3 +243,4 @@ class ValidationMixin: Raises: ValidationError: If the proposed parameter value is objectionable """ + return None