Commit 3f6d94b7 authored by Sebastien Robin's avatar Sebastien Robin

check if a quantity is None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4074 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 869b9633
......@@ -477,6 +477,8 @@ class SimulationMovement(Movement):
return 1
d_quantity = delivery.getQuantity()
if d_quantity is None:
d_quantity = 0
quantity = self.getCorrectedQuantity()
d_error = self.getDeliveryError()
if quantity is None:
......
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