mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
Remove defunct 'build_order' field from StockItem model
- This is now handled by the new-and-improved build system, no longer required
This commit is contained in:
20
InvenTree/order/migrations/0037_auto_20201110_0911.py
Normal file
20
InvenTree/order/migrations/0037_auto_20201110_0911.py
Normal file
@ -0,0 +1,20 @@
|
||||
# Generated by Django 3.0.7 on 2020-11-10 09:11
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stock', '0054_remove_stockitem_build_order'),
|
||||
('order', '0036_auto_20200831_0912'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='salesorderallocation',
|
||||
name='item',
|
||||
field=models.ForeignKey(help_text='Select stock item to allocate', limit_choices_to={'belongs_to': None, 'part__salable': True, 'sales_order': None}, on_delete=django.db.models.deletion.CASCADE, related_name='sales_order_allocations', to='stock.StockItem'),
|
||||
),
|
||||
]
|
@ -621,7 +621,6 @@ class SalesOrderAllocation(models.Model):
|
||||
'part__salable': True,
|
||||
'belongs_to': None,
|
||||
'sales_order': None,
|
||||
'build_order': None,
|
||||
},
|
||||
help_text=_('Select stock item to allocate')
|
||||
)
|
||||
|
Reference in New Issue
Block a user