2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

Add "part" reference to SalesOrderLineItem model

This commit is contained in:
Oliver Walters
2020-04-21 08:33:32 +10:00
parent 34d3dca8b7
commit a2c0c7c76a
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,20 @@
# Generated by Django 3.0.5 on 2020-04-20 22:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('part', '0035_auto_20200406_0045'),
('order', '0021_auto_20200420_1010'),
]
operations = [
migrations.AddField(
model_name='salesorderlineitem',
name='part',
field=models.ForeignKey(help_text='Part', limit_choices_to={'salable': True}, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='sales_orders', to='part.Part'),
),
]