Commit 7a245977 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix task report notifications.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23329 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 095fc9c4
......@@ -107,7 +107,7 @@ if source_person is not None \\\n
and destination_decision_person.getDefaultEmailText() \\\n
and destination_decision_person.getReference():\n
source_user = portal.portal_membership.getMemberById(source_person.getReference())\n
if source_user is not None and source_user.has_permission(\'View\', task_report):\n
if source_user is not None:\n
message = """A new task has been assigned to you by %(assignor)s.\n
\n
This task is named: %(title)s\n
......
......@@ -81,7 +81,7 @@ if source_person is not None \\\n
and destination_decision_person.getDefaultEmailText() \\\n
and destination_decision_person.getReference():\n
source_user = portal.portal_membership.getMemberById(source_person.getReference())\n
if source_user is not None and source_user.has_permission(\'View\', task_report):\n
if source_user is not None:\n
message = """\n
%s has finished the task report titled with %s.\n
Please look at this URL:\n
......
......@@ -95,7 +95,7 @@ if source_person is not None \\\n
and source_person.getDefaultEmailText() \\\n
and source_person.getReference():\n
source_user = portal.portal_membership.getMemberById(source_person.getReference())\n
if source_user is not None and source_user.has_permission(\'View\', task_report):\n
if source_user is not None:\n
message = """\n
A question from task has been assigned to you by %(assignor)s.\n
\n
......
......@@ -81,7 +81,7 @@ if source_person is not None \\\n
and source_person.getDefaultEmailText() \\\n
and source_person.getReference():\n
source_user = portal.portal_membership.getMemberById(source_person.getReference())\n
if source_user is not None and source_user.has_permission(\'View\', task_report):\n
if source_user is not None:\n
message = """\n
Restarted task has been assigned to you by %(assignor)s.\n
\n
......
576
\ No newline at end of file
577
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment