mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
- Limit foreignkey choices - Error checking - Check if a StockItem is over-allocated - Fix API serialization and filtering
21 lines
612 B
Python
21 lines
612 B
Python
# Generated by Django 3.0.5 on 2020-04-22 02:24
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('stock', '0031_auto_20200422_0209'),
|
|
('order', '0025_auto_20200422_0222'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='salesorderallocation',
|
|
name='item',
|
|
field=models.OneToOneField(limit_choices_to={'part__salable': True}, on_delete=django.db.models.deletion.CASCADE, related_name='sales_order_allocation', to='stock.StockItem'),
|
|
),
|
|
]
|