Coverage for src/backend/InvenTree/order/migrations/0046_purchaseorderlineitem_destination.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 17:47 +0000

1# Generated by Django 3.2 on 2021-05-13 22:38 

2 

3from django.db import migrations 

4import django.db.models.deletion 

5import mptt.fields 

6 

7 

8class Migration(migrations.Migration): 

9 

10 dependencies = [ 

11 ("stock", "0063_auto_20210511_2343"), 

12 ("order", "0045_auto_20210504_1946"), 

13 ] 

14 

15 operations = [ 

16 migrations.AddField( 

17 model_name="purchaseorderlineitem", 

18 name="destination", 

19 field=mptt.fields.TreeForeignKey( 

20 blank=True, 

21 help_text="Where does the Purchaser want this item to be stored?", 

22 null=True, 

23 on_delete=django.db.models.deletion.DO_NOTHING, 

24 related_name="po_lines", 

25 to="stock.stocklocation", 

26 verbose_name="Destination", 

27 ), 

28 ), 

29 ]