Coverage for src/backend/InvenTree/part/migrations/0150_part_maximum_stock.py: 100%

5 statements  

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

1# Generated by Django 5.2.13 on 2026-05-10 06:02 

2 

3import django.core.validators 

4from django.db import migrations, models 

5 

6 

7class Migration(migrations.Migration): 

8 

9 dependencies = [ 

10 ("part", "0149_bomitem_raw_amount"), 

11 ] 

12 

13 operations = [ 

14 migrations.AddField( 

15 model_name="part", 

16 name="maximum_stock", 

17 field=models.DecimalField( 

18 decimal_places=6, 

19 default=0, 

20 help_text="Maximum allowed stock level", 

21 max_digits=19, 

22 validators=[django.core.validators.MinValueValidator(0)], 

23 verbose_name="Maximum Stock", 

24 ), 

25 ), 

26 ]