diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml index fad01a3b3a212c1bd20afce2f5998a7111a4ba0d..eed18efb7ac7b54b3172396d62838cd00664cc72 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_viewFieldLibrary/my_text_content.xml @@ -307,7 +307,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:(here.hasFile() and \'page\') or \'\'</string> </value> + <value> <string>python:((here.hasFile() and here.getSimulationState() not in (\'draft\', \'outgoing\', \'pending\')) and \'page\') or \'\'</string> </value> </item> </dictionary> </pickle> @@ -323,7 +323,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:here.Event_getTextContentCorrespondToFormat(editable=not here.hasFile())</string> </value> + <value> <string>python:here.Event_getTextContentCorrespondToFormat(editable=(not here.hasFile() or here.getSimulationState() in (\'draft\', \'outgoing\', \'pending\')))</string> </value> </item> </dictionary> </pickle> @@ -339,7 +339,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>not:here/hasFile</string> </value> + <value> <string>python:not here.hasFile() or here.getSimulationState() in (\'draft\', \'outgoing\', \'pending\')</string> </value> </item> </dictionary> </pickle>