Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
b562e505
Commit
b562e505
authored
Jul 24, 2015
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX erp5_project: don't send task notification to person without email address (DO UNIT TESTS XXX)
parent
c1ca0d3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml
...oject/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml
+9
-6
No files found.
bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReport_copyOrderPropertiesAndNotifyAssignee.xml
View file @
b562e505
...
@@ -85,12 +85,15 @@ destination_decision_person = task_report.getDestinationDecisionValue(portal_typ
...
@@ -85,12 +85,15 @@ destination_decision_person = task_report.getDestinationDecisionValue(portal_typ
if destination_decision_person is None:\n
if destination_decision_person is None:\n
destination_decision_person = task_report.getDestinationValue(portal_type="Person")\n
destination_decision_person = task_report.getDestinationValue(portal_type="Person")\n
\n
\n
# We send a message only if the requester have an email and the assignee \n
# We send a message only if the requester has an email\n
# is an user that can view the task report.\n
# and the assignee has one too and is an user that can view the task report.\n
if source_person is not None \\\n
if (\n
and destination_decision_person is not None \\\n
source_person is not None and\n
and destination_decision_person.getDefaultEmailText() \\\n
source_person.getDefaultEmailText() and # XXX Add unit test: check if task confirmation works if assignee has no mail\n
and destination_decision_person.getReference():\n
destination_decision_person is not None and\n
destination_decision_person.getDefaultEmailText() and\n
destination_decision_person.getReference()\n
):\n
if len(portal.acl_users.erp5_users.getUserByLogin(source_person.getReference())):\n
if len(portal.acl_users.erp5_users.getUserByLogin(source_person.getReference())):\n
message = """A new task has been assigned to you by %(assignor)s.\n
message = """A new task has been assigned to you by %(assignor)s.\n
\n
\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment