mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #907 from SchrodingersGat/bom-level-int
Make BOM levels integers
This commit is contained in:
commit
89c7f72caf
@ -59,7 +59,7 @@ def ExportBom(part, fmt='csv', cascade=False, max_levels=None):
|
||||
# Add items at a given layer
|
||||
for item in items:
|
||||
|
||||
item.level = '-' * level
|
||||
item.level = str(int(level))
|
||||
|
||||
# Avoid circular BOM references
|
||||
if item.pk in uids:
|
||||
|
Loading…
Reference in New Issue
Block a user