diff --git a/product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/DocumentConstraint/assignor_existence_constraint.xml b/product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/DocumentConstraint/assignor_existence_constraint.xml index e303285ec38ee94e7fa8a74d9989ffba41320796..6b935291f25ed9ea708557fc7a668c8e2ef5bd5f 100644 --- a/product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/DocumentConstraint/assignor_existence_constraint.xml +++ b/product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/DocumentConstraint/assignor_existence_constraint.xml @@ -26,7 +26,7 @@ <key> <string>expression</string> </key> <value> <string encoding="cdata"><![CDATA[ -python: len(object.getFollowUpList()) > 0 \t or len(object.getGroupList()) > 0 or \t\t object.getValidationState() in ("embedded", "cancelled", "deleted") +python: len(object.getFollowUpList()) > 0 \t or len(object.getGroupList()) > 0 or \t\t object.getValidationState() in ("embedded", "cancelled", "deleted") or object.isTemplate() ]]></string> </value> </item>