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