mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
fix: add missing build model property (#5127)
* fix: add missing virtual build property * chore: improve docstring
This commit is contained in:
parent
a81ac89603
commit
2e7c86ff92
@ -361,6 +361,11 @@ class Build(MPTTModel, InvenTree.models.InvenTreeBarcodeMixin, InvenTree.models.
|
|||||||
|
|
||||||
return self.build_lines.filter(bom_item__sub_part__trackable=False)
|
return self.build_lines.filter(bom_item__sub_part__trackable=False)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def are_untracked_parts_allocated(self):
|
||||||
|
"""Returns True if all untracked parts are allocated for this BuildOrder."""
|
||||||
|
return self.is_fully_allocated(tracked=False)
|
||||||
|
|
||||||
def has_untracked_line_items(self):
|
def has_untracked_line_items(self):
|
||||||
"""Returns True if this BuildOrder has non trackable BomItems."""
|
"""Returns True if this BuildOrder has non trackable BomItems."""
|
||||||
return self.has_untracked_line_items.count() > 0
|
return self.has_untracked_line_items.count() > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user