mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 13:06:45 +00:00
Adde 'system' Field to StockItemTracking
This commit is contained in:
parent
a4621295a6
commit
f1357cfb7c
20
InvenTree/stock/migrations/0018_stockitemtracking_system.py
Normal file
20
InvenTree/stock/migrations/0018_stockitemtracking_system.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.12 on 2018-04-17 22:43
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('stock', '0017_auto_20180417_1536'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='stockitemtracking',
|
||||||
|
name='system',
|
||||||
|
field=models.BooleanField(default=False),
|
||||||
|
),
|
||||||
|
]
|
@ -215,6 +215,9 @@ class StockItemTracking(models.Model):
|
|||||||
# Which user created this tracking entry?
|
# Which user created this tracking entry?
|
||||||
user = models.ForeignKey(User, on_delete=models.SET_NULL, blank=True, null=True)
|
user = models.ForeignKey(User, on_delete=models.SET_NULL, blank=True, null=True)
|
||||||
|
|
||||||
|
# Was this tracking note auto-generated by the system?
|
||||||
|
system = models.BooleanField(default=False)
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
# image = models.ImageField(upload_to=func, max_length=255, null=True, blank=True)
|
# image = models.ImageField(upload_to=func, max_length=255, null=True, blank=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user