From 3f6d94b7f442ae6d3c4f622ece54639f6fe50d28 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 19 Oct 2005 12:30:06 +0000 Subject: [PATCH] check if a quantity is None git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4074 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/SimulationMovement.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5/Document/SimulationMovement.py b/product/ERP5/Document/SimulationMovement.py index 5dbee75893..31bb55dc0a 100755 --- a/product/ERP5/Document/SimulationMovement.py +++ b/product/ERP5/Document/SimulationMovement.py @@ -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: -- 2.30.9