Commit ed6eca0e authored by Łukasz Nowak's avatar Łukasz Nowak

Expand SPLs only when they have related order.

parent 8662ac98
......@@ -21,7 +21,8 @@ def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self):
self.setQuantity(0.0)
else:
self.setQuantity(1.0)
self.Delivery_updateAppliedRule()
if len(delivery.getCausalityList()) > 0 or delivery.getPortalType() != 'Sale Packing List':
delivery.Delivery_updateAppliedRule()
@WorkflowMethod.disable
def OpenSaleOrder_migrate(self):
......
73
\ No newline at end of file
74
\ No newline at end of file
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