Bug terms
This commit is contained in:
@@ -1691,8 +1691,9 @@ class Line(metaclass=PoolMeta):
|
||||
|
||||
def _get_basis_component_price(self):
|
||||
price = Decimal(0)
|
||||
if self.terms:
|
||||
for t in self.terms:
|
||||
terms = getattr(self, 'terms', None)
|
||||
if terms:
|
||||
for t in terms:
|
||||
price += (t.manual_price if t.manual_price else Decimal(0))
|
||||
else:
|
||||
if not self.price_components:
|
||||
|
||||
Reference in New Issue
Block a user