Commit 14c7306b authored by Rafael Monnerat's avatar Rafael Monnerat

Ignore Embedded Files and Images from Consistency.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22113 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f7ad5f97
...@@ -36,7 +36,8 @@ class DocumentConstraint: ...@@ -36,7 +36,8 @@ class DocumentConstraint:
'description': 'Documents should have one group or use one project as \ 'description': 'Documents should have one group or use one project as \
Follow Up relation', Follow Up relation',
'expression' : 'python: len(object.getFollowUpList()) > 0 \ 'expression' : 'python: len(object.getFollowUpList()) > 0 \
or len(object.getGroupList()) > 0', or len(object.getGroupList()) > 0 or \
object.getValidationState() == "embedded"',
'type': 'TALESConstraint', 'type': 'TALESConstraint',
'message_expression_false': 'Follow Up or Group must be defined', 'message_expression_false': 'Follow Up or Group must be defined',
}, },
......
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