Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
80d7d232
Commit
80d7d232
authored
May 17, 2017
by
Ayush Tiwari
Committed by
Ayush Tiwari
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add Business Manager portal_type also while checking for dependencies
parent
6d9e1490
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 @
80d7d232
...
...
@@ -2519,8 +2519,13 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
force
=
kw
.
get
(
'force'
)
installed_bt
=
kw
.
get
(
'installed_bt'
)
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
())
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
:
previous_portal_type_workflow_chain_list
=
[]
# We now need to setup the list of workflows corresponding to
...
...
product/ERP5/Tool/TemplateTool.py
View file @
80d7d232
...
...
@@ -138,7 +138,13 @@ class TemplateTool (BaseTool):
# potential danger because business templates may exchange catalog
# methods, so the database could be broken temporarily.
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
():
state
=
bt
.
getInstallationState
()
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