Stop recursive nesting of additional components
This commit is contained in:
parent
b15658b926
commit
c7537f000a
@ -286,6 +286,10 @@ class AdditionalComponent(Component):
|
|||||||
else:
|
else:
|
||||||
raise Exception(f"Unknown qty multiplier: {self.qty_multiplier}")
|
raise Exception(f"Unknown qty multiplier: {self.qty_multiplier}")
|
||||||
|
|
||||||
|
@property
|
||||||
|
def additional_components(self):
|
||||||
|
return [] # an additional component may not have further nested additional comonents
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def bom_qty(self):
|
def bom_qty(self):
|
||||||
return self.qty.number * self._qty_multiplier_computed
|
return self.qty.number * self._qty_multiplier_computed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user