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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Papa Tamsir Kane
erp5
Commits
28439d7d
Commit
28439d7d
authored
Sep 06, 2017
by
Papa Tamsir Kane
Committed by
Papa Tamsir Kane
Sep 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_decision: Do not crash when source decision is not indicated in business process
parent
3a1c9eb5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bt5/erp5_decision/SkinTemplateItem/portal_skins/erp5_decision/Decision_afterGeneration.py
...em/portal_skins/erp5_decision/Decision_afterGeneration.py
+5
-2
No files found.
bt5/erp5_decision/SkinTemplateItem/portal_skins/erp5_decision/Decision_afterGeneration.py
View file @
28439d7d
...
@@ -12,6 +12,9 @@ if isTransitionPossible(decision, 'post'):
...
@@ -12,6 +12,9 @@ if isTransitionPossible(decision, 'post'):
# set some meaningful title
# set some meaningful title
action_type
=
'Approval'
action_type
=
'Approval'
if
source_decision_value
is
None
:
decision
.
setTitle
(
action_type
)
else
:
title
=
'%s by %s'
%
(
action_type
,
source_decision_value
.
getTitle
())
title
=
'%s by %s'
%
(
action_type
,
source_decision_value
.
getTitle
())
decision
.
setTitle
(
title
)
decision
.
setTitle
(
title
)
...
...
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