[Erp5-report] r10596 - in /erp5/trunk/bt5/erp5_project: WorkflowTemplateItem/portal_workflo...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 6 16:08:32 CEST 2006
Author: romain
Date: Fri Oct 6 16:08:29 2006
New Revision: 10596
URL: http://svn.erp5.org?rev=10596&view=rev
Log:
Improve the notification sent by the Task Report.
Modified:
erp5/trunk/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReport_notifyAssignee.xml
erp5/trunk/bt5/erp5_project/bt/revision
Modified: erp5/trunk/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReport_notifyAssignee.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReport_notifyAssignee.xml?rev=10596&r1=10595&r2=10596&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReport_notifyAssignee.xml (original)
+++ erp5/trunk/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReport_notifyAssignee.xml Fri Oct 6 16:08:29 2006
@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>context = state_change.object\n
+ <value> <string>packing_list = state_change.object\n
\n
# Notify assignee\n
source_person = context.getSourceValue(portal_type="Person")\n
@@ -80,17 +80,26 @@
email = source_person.getDefaultEmailValue()\n
if email is not None:\n
msg = """\n
-A task has been assigned to you by %(assignor)s who would like to know how your task is progressing.\n
+A new task has been assigned to you by %(assignor)s.\n
\n
This task is named: %(title)s\n
\n
+Description: \n
+%(comment)s\n
+\n
+Start Date: %(start_date)%\n
+Stop Date: %(stop_date)%\n
+\n
Please wisit ERP5: %(url)s\n
""" % {\n
- \'assignor\': destination_decision_person.getTitle(), \n
- \'title\' : context.getTitle(),\n
- \'url\' : context.absolute_url(),\n
+ \'assignor\': destination_decision_person.getTitle(),\n
+ \'title\' : packing_list.getTitle(),\n
+ \'url\' : packing_list.absolute_url(),\n
+ \'comment\' : packing_list.getComment(),\n
+ \'start_date\': packing_list.getStartDate().Date(),\n
+ \'stop_date\': packing_list.getStopDate().Date(),\n
}\n
- email.activate().send(from_url = from_email, subject="Task Progress Query", msg = msg)\n
+ email.activate().send(from_url = from_email, subject="New Task Assigned to You", msg = msg)\n
</string> </value>
</item>
<item>
@@ -135,6 +144,7 @@
<tuple>
<string>state_change</string>
<string>_getattr_</string>
+ <string>packing_list</string>
<string>context</string>
<string>source_person</string>
<string>destination_decision_person</string>
Modified: erp5/trunk/bt5/erp5_project/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/bt/revision?rev=10596&r1=10595&r2=10596&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/bt/revision (original)
+++ erp5/trunk/bt5/erp5_project/bt/revision Fri Oct 6 16:08:29 2006
@@ -1,1 +1,1 @@
-94
+96
More information about the Erp5-report
mailing list