[Erp5-report] r19821 - /erp5/trunk/products/ERP5/PropertySheet/Order.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 12 11:31:21 CET 2008
Author: alex
Date: Wed Mar 12 11:31:20 2008
New Revision: 19821
URL: http://svn.erp5.org?rev=19821&view=rev
Log:
Revert r19790. These constraints should not be enabled by default on all
Orders.
Modified:
erp5/trunk/products/ERP5/PropertySheet/Order.py
Modified: erp5/trunk/products/ERP5/PropertySheet/Order.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/Order.py?rev=19821&r1=19820&r2=19821&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/Order.py (original)
+++ erp5/trunk/products/ERP5/PropertySheet/Order.py Wed Mar 12 11:31:20 2008
@@ -77,30 +77,4 @@
'portal_type' : ('Applied Rule', ),
'base_category' : ('causality',)
},
- { 'id' : 'category_existence',
- 'description' : 'Source, Destination and Sections must be defined',
- 'type' : 'CategoryExistence',
- 'portal_type' : ('Person', 'Organisation'),
- 'source' : 1,
- 'destination' : 1,
- 'source_section': 1,
- 'destination_section': 1,
- },
- { 'id' : 'total_quantity',
- 'description' : 'Total Quantity must not be 0',
- 'type' : 'TALESConstraint',
- 'expression' : 'python: object.getTotalQuantity() > 0',
- 'message_expression_false': 'Total Quantity must not be 0',
- },
- { 'id' : 'start_date',
- 'description' : 'Start Date must be defined',
- 'type' : 'PropertyExistence',
- 'start_date' : 1,
- },
- { 'id' : 'date_coherency',
- 'description' : 'Stop Date must be after Start Date',
- 'type' : 'TALESConstraint',
- 'expression' : 'python: object.getStopDate() >= object.getStartDate()',
- 'message_expression_false': 'Stop Date must be after Start Date',
- },
)
More information about the Erp5-report
mailing list