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
Sebastian
erp5
Commits
b789f089
Commit
b789f089
authored
Jun 21, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix workflow initialization when workflow_history is not present yet.
parent
25c6d206
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ERP5Configurator/Document/BusinessConfiguration.py
product/ERP5Configurator/Document/BusinessConfiguration.py
+5
-4
No files found.
product/ERP5Configurator/Document/BusinessConfiguration.py
View file @
b789f089
...
...
@@ -97,10 +97,11 @@ class BusinessConfiguration(Item):
def
initializeWorkflow
(
self
):
""" Initialize Related Workflow"""
workflow
=
self
.
getResourceValue
()
workflow_history
=
getattr
(
self
,
'workflow_history'
,
None
)
if
workflow
is
not
None
and
\
workflow_history
is
not
None
and
\
(
self
.
getResource
()
not
in
workflow_history
):
workflow_history
=
getattr
(
self
,
'workflow_history'
,
{})
if
workflow
is
None
:
return
if
self
.
getResource
()
not
in
workflow_history
:
if
len
(
self
.
objectValues
(
"ERP5 Configuration Save"
))
>
0
:
raise
ValueError
(
"Business Configuration Cannot be initialized,
\
it contains one or more Configurator Save"
)
...
...
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