mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 18:01:14 +00:00
Add context flag to enable editing mode
- pass ?edit=1 to the BOM - Display page differently if in editing mode -
This commit is contained in:
1 parent
258555a813
commit
ec98f7829e
3 files changed
+146
-55
No files matched your search
@@ -288,6 +288,7 @@ class Part(models.Model):
|
||||
header.append('Part')
|
||||
header.append('Description')
|
||||
header.append('Quantity')
|
||||
header.append('Note')
|
||||
|
||||
lines.append(header)
|
||||
|
||||
@@ -297,6 +298,7 @@ class Part(models.Model):
|
||||
line.append(it.sub_part.name)
|
||||
line.append(it.sub_part.description)
|
||||
line.append(it.quantity)
|
||||
line.append(it.note)
|
||||
|
||||
lines.append([str(x) for x in line])
|
||||
|
||||
|
||||
Reference in new issue
Block a user