[Erp5-report] r30137 - /erp5/trunk/products/ERP5/Document/Movement.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 30 09:39:08 CET 2009
Author: jerome
Date: Fri Oct 30 09:39:05 2009
New Revision: 30137
URL: http://svn.erp5.org?rev=30137&view=rev
Log:
A setter should not return anything
Modified:
erp5/trunk/products/ERP5/Document/Movement.py
Modified: erp5/trunk/products/ERP5/Document/Movement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Movement.py?rev=30137&r1=30136&r2=30137&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Movement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Movement.py [utf8] Fri Oct 30 09:39:05 2009
@@ -811,7 +811,7 @@
Set the quantity
"""
if source_debit in (None, ''):
- return 0.0
+ return
try:
source_debit = float(source_debit)
except TypeError:
@@ -825,7 +825,7 @@
Set the quantity
"""
if source_credit in (None, ''):
- return 0.0
+ return
try:
source_credit = float(source_credit)
except TypeError:
More information about the Erp5-report
mailing list