-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Please verify that this bug has NOT been raised before.
- I checked and didn't find a similar issue
Describe the bug*
Looking at the API Doc for version 453 or even the newest one, theparent field on the StockItem is marked as required. The Api does return null for the field.
Steps to Reproduce
Look at any request returning a StockItem, for example stock/
Expected behaviour
It to be marked nullable, so codegen works properly
Deployment Method
Docker
Version Information
InvenTree-Version: 1.2.3
Django Version: 5.2.11
Commit Hash: 12da3b0
Commit Date: 2026-02-22
Commit Branch: null
Database: django.db.backends.postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-6.12.33-production+truenas-x86_64-with-glibc2.41
Installer: DOC
Active plugins: [{"name":"InvenTreeBarcode","slug":"inventreebarcode","version":"2.1.0"},{"name":"BOM Exporter","slug":"bom-exporter","version":"1.1.0"},{"name":"InvenTree Exporter","slug":"inventree-exporter","version":"1.0.0"},{"name":"Parameter Exporter","slug":"parameter-exporter","version":"2.0.0"},{"name":"InvenTreeEmailNotifications","slug":"inventree-email-notification","version":"1.0.0"},{"name":"InvenTreeUINotifications","slug":"inventree-ui-notification","version":"1.0.0"},{"name":"InvenTreeCurrencyExchange","slug":"inventreecurrencyexchange","version":"1.0.0"},{"name":"InvenTreeMachines","slug":"inventree-machines","version":"1.0.0"},{"name":"InvenTreeLabel","slug":"inventreelabel","version":"1.1.0"},{"name":"InvenTreeLabelMachine","slug":"inventreelabelmachine","version":"1.0.0"},{"name":"DigiKeyBarcodePlugin","slug":"digikeyplugin","version":"1.0.1"},{"name":"LCSCBarcodePlugin","slug":"lcscplugin","version":"1.0.1"},{"name":"MouserBarcodePlugin","slug":"mouserplugin","version":"1.0.1"},{"name":"TMEBarcodePlugin","slug":"tmeplugin","version":"1.0.1"},{"name":"KiCadLibraryPlugin","slug":"kicad-library-plugin","version":"2.0.3"},{"name":"Brother Labels","slug":"brother","version":"2.0.5"},{"name":"IPNGenerator","slug":"ipngen","version":"0.1"},{"name":"Report LSP","slug":"report-lsp","version":"0.1.1"}]
Try to reproduce on the demo site
I tried to reproduce
Is the bug reproducible on the demo site?
Reproducible