diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_send.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_send.xml index a516c398e432cd85f8c5f99d727a461a27be8317..c8f1758e8c9862f95fc11904d4a0a24a0dd16c63 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_send.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_send.xml @@ -68,9 +68,10 @@ <value> <string encoding="cdata"><![CDATA[ # Transit event workflow\n -context.plan()\n -context.order()\n -context.start()\n +if \'event_workflow\' in context.portal_workflow.getWorkflowsFor(context):\n + context.plan()\n + context.order()\n + context.start()\n \n if body is None:\n body = context.getTextContent() #XXX This does not support structured text format.\n diff --git a/bt5/erp5_crm/bt/change_log b/bt5/erp5_crm/bt/change_log index fe0b9688ed907017987dfbc3168acc2b38df23a9..c7a12384c4d4cccb99ddf2512d089e98f9c0532b 100644 --- a/bt5/erp5_crm/bt/change_log +++ b/bt5/erp5_crm/bt/change_log @@ -1,3 +1,6 @@ +2008-5-31 yusei +* Invoke workflow method only when event worklfow is used. + 2008-5-29 yusei * Add type based method for Event.send and use MailTemplate to build mail message. * Add a minimum support of html mail. diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision index ae4d10b425edf2234036e6dd7b07f9bd53fc25e3..a9d8b73e699feec67a98221332b994952c6c8ad8 100644 --- a/bt5/erp5_crm/bt/revision +++ b/bt5/erp5_crm/bt/revision @@ -1 +1 @@ -256 \ No newline at end of file +257 \ No newline at end of file