diff --git a/InvenTree/part/migrations/0009_part_virtual.py b/InvenTree/part/migrations/0009_part_virtual.py new file mode 100644 index 0000000000..8a934e9064 --- /dev/null +++ b/InvenTree/part/migrations/0009_part_virtual.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.2 on 2019-06-18 08:33 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('part', '0008_auto_20190618_0042'), + ] + + operations = [ + migrations.AddField( + model_name='part', + name='virtual', + field=models.BooleanField(default=False, help_text='Is this a virtual part, such as a software product or license?'), + ), + ] diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 7d5476db5d..92acce5026 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -216,6 +216,7 @@ class Part(models.Model): purchaseable: Can this part be purchased from suppliers? trackable: Trackable parts can have unique serial numbers assigned, etc, etc active: Is this part active? Parts are deactivated instead of being deleted + virtual: Is this part "virtual"? e.g. a software product or similar notes: Additional notes field for this part """ @@ -377,6 +378,8 @@ class Part(models.Model): active = models.BooleanField(default=True, help_text='Is this part active?') + virtual = models.BooleanField(default=False, help_text='Is this a virtual part, such as a software product or license?') + notes = models.TextField(blank=True) bom_checksum = models.CharField(max_length=128, blank=True, help_text='Stored BOM checksum')