Use rounding decimal field in BomItem form

This commit is contained in:
Oliver Walters 2020-05-27 10:33:47 +10:00
parent 7bcf9bf5be
commit 9b7b65374d

View File

@ -7,6 +7,7 @@ from __future__ import unicode_literals
from InvenTree.forms import HelperForm
from InvenTree.helpers import GetExportFormats
from InvenTree.fields import RoundingDecimalFormField
from mptt.fields import TreeNodeChoiceField
from django import forms
@ -194,6 +195,8 @@ class EditCategoryForm(HelperForm):
class EditBomItemForm(HelperForm):
""" Form for editing a BomItem object """
quantity = RoundingDecimalFormField(max_digits=10, decimal_places=5)
class Meta:
model = BomItem
fields = [