2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 12:10:59 +00:00

Add configurable option for controlling default "delete_on_deplete" behaviour (#4106)

(cherry picked from commit aa7fa89b0c)
This commit is contained in:
Oliver
2022-12-25 07:13:53 +11:00
committed by GitHub
parent 07e4f39dc7
commit c31cc15fbf
4 changed files with 46 additions and 1 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 3.2.16 on 2022-12-24 12:29
from django.db import migrations, models
import stock.models
class Migration(migrations.Migration):
dependencies = [
('stock', '0090_stocklocation_structural'),
]
operations = [
migrations.AlterField(
model_name='stockitem',
name='delete_on_deplete',
field=models.BooleanField(default=stock.models.default_delete_on_deplete, help_text='Delete this Stock Item when stock is depleted', verbose_name='Delete on deplete'),
),
]