[Erp5-report] r27998 - /erp5/trunk/products/ERP5/PropertySheet/TradeModelLineConstraint.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jul 7 16:04:33 CEST 2009
Author: fabien
Date: Tue Jul 7 16:04:33 2009
New Revision: 27998
URL: http://svn.erp5.org?rev=27998&view=rev
Log:
add constraints on TradeModelLine :
- trade_phase is mandatory
- if category are defined on line, this line should contain cells
Modified:
erp5/trunk/products/ERP5/PropertySheet/TradeModelLineConstraint.py
Modified: erp5/trunk/products/ERP5/PropertySheet/TradeModelLineConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/TradeModelLineConstraint.py?rev=27998&r1=27997&r2=27998&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/TradeModelLineConstraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5/PropertySheet/TradeModelLineConstraint.py [utf8] Tue Jul 7 16:04:33 2009
@@ -47,4 +47,19 @@
'base_category' : ('resource',),
'message_arity_not_in_range' : 'Service must be defined in lines',
},
+ { 'id' : 'trade_phase',
+ 'description' : 'Trade Phase must be defined',
+ 'type' : 'CategoryMembershipArity',
+ 'min_arity' : '1',
+ 'max_arity' : '1',
+ 'portal_type' : ( ),
+ 'base_category' : ('trade_phase',),
+ 'message_arity_not_in_range' : 'Trade Phase must be defined in lines',
+ },
+ { 'id': 'cell_existence',
+ 'description': 'If variation categories are define on Trade Model Line \
+ cell corresponding to this categories should exist too',
+ 'base_id': 'movement',
+ 'type': 'TradeModelLineCellConsistency',
+ },
)
More information about the Erp5-report
mailing list