[Erp5-report] r32111 jerome - /erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 1 10:07:23 CET 2010
Author: jerome
Date: Mon Feb 1 10:07:20 2010
New Revision: 32111
URL: http://svn.erp5.org?rev=32111&view=rev
Log:
There's no reason to disallow orders with negative quantities, change the test
for "Total Quantity must not be 0"
Modified:
erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py
Modified: erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py?rev=32111&r1=32110&r2=32111&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py [utf8] (original)
+++ erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py [utf8] Mon Feb 1 10:07:20 2010
@@ -78,7 +78,7 @@
{ 'id' : 'total_quantity',
'description' : 'Total Quantity must not be 0',
'type' : 'TALESConstraint',
- 'expression' : 'python: object.getTotalQuantity() > 0',
+ 'expression' : 'python: object.getTotalQuantity() != 0',
'message_expression_false': 'Total Quantity must not be 0',
},
{ 'id' : 'start_date',
More information about the Erp5-report
mailing list