mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Merge pull request #1446 from eeintech/bom_yaml_export
Replace normalize with integer wrapper for quantity field
This commit is contained in:
commit
6bf3cc9e01
@ -16,8 +16,6 @@ from .models import PartCategoryParameterTemplate
|
|||||||
from .models import PartTestTemplate
|
from .models import PartTestTemplate
|
||||||
from .models import PartSellPriceBreak
|
from .models import PartSellPriceBreak
|
||||||
|
|
||||||
from InvenTree.helpers import normalize
|
|
||||||
|
|
||||||
from stock.models import StockLocation
|
from stock.models import StockLocation
|
||||||
from company.models import SupplierPart
|
from company.models import SupplierPart
|
||||||
|
|
||||||
@ -180,7 +178,7 @@ class BomItemResource(ModelResource):
|
|||||||
|
|
||||||
Ref: https://django-import-export.readthedocs.io/en/latest/getting_started.html#advanced-data-manipulation-on-export
|
Ref: https://django-import-export.readthedocs.io/en/latest/getting_started.html#advanced-data-manipulation-on-export
|
||||||
"""
|
"""
|
||||||
return normalize(item.quantity)
|
return float(item.quantity)
|
||||||
|
|
||||||
def before_export(self, queryset, *args, **kwargs):
|
def before_export(self, queryset, *args, **kwargs):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user