Commit 2d74aa9d authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: ensure trade condition is found

parent a23cb29a
......@@ -124,6 +124,10 @@ if instance_tree.getCausalityState() == 'diverged':
predicate_list = []
inherited_trade_condition = open_sale_order.getSpecialiseValue()
if specialise is None:
assert inherited_trade_condition is not None
while inherited_trade_condition is not None:
predicate_list.extend([
x for x in inherited_trade_condition.contentValues(portal_type='Sale Supply Line')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment