From bca756d4432d6f0bd214a8173795737cb4632ac6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 30 Oct 2009 08:39:05 +0000
Subject: [PATCH] A setter should not return anything

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30137 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Movement.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/Movement.py b/product/ERP5/Document/Movement.py
index d77885bfd3..4c68518b73 100644
--- a/product/ERP5/Document/Movement.py
+++ b/product/ERP5/Document/Movement.py
@@ -811,7 +811,7 @@ class Movement(XMLObject, Amount):
       Set the quantity
     """
     if source_debit in (None, ''):
-      return 0.0
+      return
     try:
       source_debit = float(source_debit)
     except TypeError:
@@ -825,7 +825,7 @@ class Movement(XMLObject, Amount):
       Set the quantity
     """
     if source_credit in (None, ''):
-      return 0.0
+      return
     try:
       source_credit = float(source_credit)
     except TypeError:
-- 
2.30.9