Commit 2892e414 authored by Jérome Perrin's avatar Jérome Perrin

There's no reason to disallow orders with negative quantities, change the test

for "Total Quantity must not be 0"


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32111 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7a60cb83
...@@ -78,7 +78,7 @@ class TradeOrder: ...@@ -78,7 +78,7 @@ class TradeOrder:
{ 'id' : 'total_quantity', { 'id' : 'total_quantity',
'description' : 'Total Quantity must not be 0', 'description' : 'Total Quantity must not be 0',
'type' : 'TALESConstraint', 'type' : 'TALESConstraint',
'expression' : 'python: object.getTotalQuantity() > 0', 'expression' : 'python: object.getTotalQuantity() != 0',
'message_expression_false': 'Total Quantity must not be 0', 'message_expression_false': 'Total Quantity must not be 0',
}, },
{ 'id' : 'start_date', { 'id' : 'start_date',
......
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