Coverage for src/backend/InvenTree/order/migrations/0024_salesorderallocation.py: 100%
7 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 17:47 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 17:47 +0000
1# Generated by Django 3.0.5 on 2020-04-22 02:09
3import InvenTree.fields
4import django.core.validators
5from django.db import migrations, models
6import django.db.models.deletion
9class Migration(migrations.Migration):
11 dependencies = [
12 ('stock', '0030_auto_20200422_0015'),
13 ('order', '0023_auto_20200420_2309'),
14 ]
16 operations = [
17 migrations.CreateModel(
18 name='SalesOrderAllocation',
19 fields=[
20 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
21 ('quantity', InvenTree.fields.RoundingDecimalField(decimal_places=5, default=1, max_digits=15, validators=[django.core.validators.MinValueValidator(0)])),
22 ('item', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='sales_order_allocation', to='stock.StockItem')),
23 ('line', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='allocations', to='order.SalesOrderLineItem')),
24 ],
25 options={
26 'verbose_name': 'Sales Order Allocation',
27 },
28 ),
29 ]