diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_createEventFromDefaultEventPath.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_createEventFromDefaultEventPath.xml index 23600633f3be77f512167bd9e312761e8e601de0..3afe6a3d9dc126e263045c37a021b09fb3ff1557 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_createEventFromDefaultEventPath.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_createEventFromDefaultEventPath.xml @@ -64,17 +64,11 @@ notification_message = portal.notification_message_module.NotificationTool_getDo language=language)\n assert notification_message is not None, "%s not found." % resource_reference\n \n -mapping_dict = context.Entity_getDefaultSubstitutionDictFromEvent()\n -if notification_message.getContentType() == "text/html":\n - mail_text = notification_message.asEntireHTML(substitution_method_parameter_dict={\'mapping_dict\':mapping_dict})\n -else:\n - mail_text = notification_message.asText(substitution_method_parameter_dict={\'mapping_dict\':mapping_dict})\n -\n -event = context.Base_addEvent(title=notification_message.getTitle(),\n +event = context.Base_addEvent(title=\'\',\n direction=\'outgoing\',\n portal_type=event_portal_type,\n resource=notification_message.getSpecialise(),\n - text_content=mail_text,\n + notification_message=resource_reference,\n keep_draft=keep_draft,\n batch_mode=True)\n \n diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision index e0c903f4749bf954930025608ba618b5c9e24ab1..53a274896eb3bd21ade6b46ff50630eab6dbb601 100644 --- a/bt5/erp5_crm/bt/revision +++ b/bt5/erp5_crm/bt/revision @@ -1 +1 @@ -625 \ No newline at end of file +626 \ No newline at end of file