mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-04 04:30:56 +00:00
The 'StockItem' model now has a reference to a SalesOrderLineItem
This commit is contained in:
20
InvenTree/stock/migrations/0027_stockitem_sales_order.py
Normal file
20
InvenTree/stock/migrations/0027_stockitem_sales_order.py
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated by Django 3.0.5 on 2020-04-21 05:03
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('order', '0023_auto_20200420_2309'),
|
||||
('stock', '0026_stockitem_uid'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='stockitem',
|
||||
name='sales_order',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='stock_items', to='order.SalesOrderLineItem'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user