2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 11:40:58 +00:00

Fix for StockItem creation form

- purchase_price field was required (should not be!)
- Fixed some validation issues
- Cleaned up form implementation
This commit is contained in:
Oliver Walters
2020-11-17 15:29:44 +11:00
parent 9fa718e58d
commit 6144d7e209
5 changed files with 110 additions and 115 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 3.0.7 on 2020-11-17 03:53
from django.db import migrations
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
('stock', '0054_remove_stockitem_build_order'),
]
operations = [
migrations.AlterField(
model_name='stockitem',
name='purchase_price',
field=djmoney.models.fields.MoneyField(blank=True, decimal_places=4, default_currency='USD', help_text='Single unit purchase price at time of purchase', max_digits=19, null=True, verbose_name='Purchase Price'),
),
]