Commit 43181ec3 authored by Jérome Perrin's avatar Jérome Perrin

there is on TradeOrder a check that total quantity > 0, so don't check it again

on lines (this check was not working with hierarchical order lines and order
cell)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24371 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b97dda9
......@@ -31,13 +31,6 @@ class TradeOrderLine:
Trade order Line Constraints
"""
_constraints = (
{ 'id' : 'quantity_existence',
'description' : 'Property quantity must be defined',
'type' : 'PropertyExistence',
'quantity' : None,
"message_property_not_set" : 'Quantity must be defined in lines',
"message_no_such_property" : 'Quantity must be defined in lines'
},
{ 'id' : 'resource',
'description' : 'Resource must be defined',
'type' : 'CategoryMembershipArity',
......
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