From 8b41538e53ba4a9fd3c859e76a177bbc41021d93 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Fri, 6 Oct 2006 14:51:59 +0000
Subject: [PATCH] Notify user when Task Report is generated by the builder.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10598 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 ...askReport_copyOrderPropertiesAndNotifyAssignee.xml | 11 ++++++++++-
 .../scripts/TaskReport_notifyAssignee.xml             |  4 ++--
 bt5/erp5_project/bt/revision                          |  2 +-
 3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml
index 420efa1ea3..7b4be09b69 100644
--- a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml
+++ b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml
@@ -104,11 +104,20 @@ 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)s\n
+Stop Date: %(stop_date)s\n
+\n
 Please wisit ERP5: %(url)s\n
 """ % {\n
-       \'assignor\': destination_decision_person.getTitle(), \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="New Task Assigned to You", msg = msg)\n
 \n
diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReport_notifyAssignee.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReport_notifyAssignee.xml
index d6082d2dc5..a291972088 100644
--- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReport_notifyAssignee.xml
+++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/TaskReport_notifyAssignee.xml
@@ -87,8 +87,8 @@ This task is named: %(title)s\n
 Description: \n
 %(comment)s\n
 \n
-Start Date: %(start_date)%\n
-Stop Date: %(stop_date)%\n
+Start Date: %(start_date)s\n
+Stop Date: %(stop_date)s\n
 \n
 Please wisit ERP5: %(url)s\n
 """ % {\n
diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision
index 56749c830e..d97edbb29f 100644
--- a/bt5/erp5_project/bt/revision
+++ b/bt5/erp5_project/bt/revision
@@ -1 +1 @@
-96
\ No newline at end of file
+99
\ No newline at end of file
-- 
2.30.9