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
Noah Brackenbury
erp5
Commits
66d756ce
Commit
66d756ce
authored
May 17, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add Business Manager portal_type also while checking for dependencies
parent
0ab5cb63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+6
-1
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+7
-1
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
66d756ce
...
@@ -2509,8 +2509,13 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
...
@@ -2509,8 +2509,13 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
force
=
kw
.
get
(
'force'
)
force
=
kw
.
get
(
'force'
)
installed_bt
=
kw
.
get
(
'installed_bt'
)
installed_bt
=
kw
.
get
(
'installed_bt'
)
if
installed_bt
is
not
None
:
if
installed_bt
is
not
None
:
previous_portal_type_workflow_chain_list
=
list
(
installed_bt
\
try
:
previous_portal_type_workflow_chain_list
=
list
(
installed_bt
\
.
getTemplatePortalTypeWorkflowChainList
())
.
getTemplatePortalTypeWorkflowChainList
())
except
Exception
:
# This will happen in case the `installed_bt` is Business Manager, so
# we won't need to goto the further installation process
return
else
:
else
:
previous_portal_type_workflow_chain_list
=
[]
previous_portal_type_workflow_chain_list
=
[]
# We now need to setup the list of workflows corresponding to
# We now need to setup the list of workflows corresponding to
...
...
product/ERP5/Tool/TemplateTool.py
View file @
66d756ce
...
@@ -138,7 +138,13 @@ class TemplateTool (BaseTool):
...
@@ -138,7 +138,13 @@ class TemplateTool (BaseTool):
# potential danger because business templates may exchange catalog
# potential danger because business templates may exchange catalog
# methods, so the database could be broken temporarily.
# methods, so the database could be broken temporarily.
last_bt
=
last_time
=
None
last_bt
=
last_time
=
None
for
bt
in
self
.
objectValues
(
portal_type
=
[
'Business Template'
,
'Business Package'
]):
for
bt
in
self
.
objectValues
(
portal_type
=
[
'Business Template'
,
'Business Package'
,
'Business Manager'
]):
if
bt
.
getPortalType
()
==
'Business Manager'
:
if
bt
.
getStatus
()
==
'installed'
:
return
bt
return
None
if
bt
.
getTitle
()
==
title
or
title
in
bt
.
getProvisionList
():
if
bt
.
getTitle
()
==
title
or
title
in
bt
.
getProvisionList
():
state
=
bt
.
getInstallationState
()
state
=
bt
.
getInstallationState
()
if
state
==
'installed'
:
if
state
==
'installed'
:
...
...
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