From 47c6906a74f41eed5b56f4dc43ea0d4e20415237 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 2 Jun 2026 17:23:35 +1000 Subject: [PATCH] Remove "review_needed" field (#12071) * Remove "review_needed" field * Update CHANGELOG --- CHANGELOG.md | 1 + .../0123_remove_stockitem_review_needed.py | 17 +++++++++++++++++ src/backend/InvenTree/stock/models.py | 3 --- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 src/backend/InvenTree/stock/migrations/0123_remove_stockitem_review_needed.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 78500f9f4a..58f5d6d53b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed +- [#12071](https://github.com/inventree/InvenTree/pull/12071) removes the "review_needed" field on the StockItem model. Note that this field was never exposed to the API or any business logic, and is essentially a no-op field which is not used for anything. This field was removed to simplify the StockItem model and reduce confusion around its purpose. - [#11962](https://github.com/inventree/InvenTree/pull/11962) removes the "remote_image" field from the Part API endpoint, which (previously) allowed the user to specify a remote URL for an image to be downloaded and associated with the part. This field was removed due to security concerns around downloading images from arbitrary URLs. If you were using this field in an external client application, you will need to update your application to use the new "download_image_from_url" API endpoint instead. ## 1.3.0 - 2026-04-11 diff --git a/src/backend/InvenTree/stock/migrations/0123_remove_stockitem_review_needed.py b/src/backend/InvenTree/stock/migrations/0123_remove_stockitem_review_needed.py new file mode 100644 index 0000000000..e81db219dd --- /dev/null +++ b/src/backend/InvenTree/stock/migrations/0123_remove_stockitem_review_needed.py @@ -0,0 +1,17 @@ +# Generated by Django 5.2.14 on 2026-06-02 06:22 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("stock", "0122_alter_stockitem_creation_date"), + ] + + operations = [ + migrations.RemoveField( + model_name="stockitem", + name="review_needed", + ), + ] diff --git a/src/backend/InvenTree/stock/models.py b/src/backend/InvenTree/stock/models.py index 58f63f5422..ae8ec477e1 100644 --- a/src/backend/InvenTree/stock/models.py +++ b/src/backend/InvenTree/stock/models.py @@ -448,7 +448,6 @@ class StockItem( expiry_date: Expiry date of the StockItem (optional) stocktake_date: Date of last stocktake for this item stocktake_user: User that performed the most recent stocktake - review_needed: Flag if StockItem needs review delete_on_deplete: If True, StockItem will be deleted when the stock level gets to zero status: Status of this StockItem (ref: stock.status_codes.StockStatus) notes: Extra notes field @@ -1238,8 +1237,6 @@ class StockItem( help_text=_('Date that this stock item was created'), ) - review_needed = models.BooleanField(default=False) - delete_on_deplete = models.BooleanField( default=default_delete_on_deplete, verbose_name=_('Delete on deplete'),