[Erp5-report] r22113 - /erp5/trunk/products/ERP5/PropertySheet/DocumentConstraint.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jun 30 18:32:00 CEST 2008
Author: rafael
Date: Mon Jun 30 18:31:56 2008
New Revision: 22113
URL: http://svn.erp5.org?rev=22113&view=rev
Log:
Ignore Embedded Files and Images from Consistency.
Modified:
erp5/trunk/products/ERP5/PropertySheet/DocumentConstraint.py
Modified: erp5/trunk/products/ERP5/PropertySheet/DocumentConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/DocumentConstraint.py?rev=22113&r1=22112&r2=22113&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/DocumentConstraint.py (original)
+++ erp5/trunk/products/ERP5/PropertySheet/DocumentConstraint.py Mon Jun 30 18:31:56 2008
@@ -36,7 +36,8 @@
'description': 'Documents should have one group or use one project as \
Follow Up relation',
'expression' : 'python: len(object.getFollowUpList()) > 0 \
- or len(object.getGroupList()) > 0',
+ or len(object.getGroupList()) > 0 or \
+ object.getValidationState() == "embedded"',
'type': 'TALESConstraint',
'message_expression_false': 'Follow Up or Group must be defined',
},
More information about the Erp5-report
mailing list