2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-06-06 00:44:25 +00:00

Remove "review_needed" field (#12071)

* Remove "review_needed" field

* Update CHANGELOG
This commit is contained in:
Oliver
2026-06-02 17:23:35 +10:00
committed by GitHub
parent 75e3f522d4
commit 47c6906a74
3 changed files with 18 additions and 3 deletions
+1
View File
@@ -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
@@ -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",
),
]
-3
View File
@@ -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'),