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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
06f5224f
Commit
06f5224f
authored
Jul 06, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP TemplateTool: draft bt5 crashes
parent
e174e4fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+11
-7
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
06f5224f
...
...
@@ -141,13 +141,17 @@ class TemplateTool (BaseTool):
if
state
==
'installed'
:
return
bt
if
state
==
'not_installed'
:
last_transition
=
bt
.
workflow_history
\
[
'business_template_installation_workflow'
][
-
1
]
if
last_transition
[
'action'
]
==
'uninstall'
:
# There is not uninstalled state !
t
=
last_transition
[
'time'
]
if
last_time
<
t
:
last_bt
=
None
last_time
=
t
try
:
last_transition
=
bt
.
workflow_history
\
[
'business_template_installation_workflow'
][
-
1
]
except
TypeError
:
continue
else
:
if
last_transition
[
'action'
]
==
'uninstall'
:
# There is not uninstalled state !
t
=
last_transition
[
'time'
]
if
last_time
<
t
:
last_bt
=
None
last_time
=
t
elif
state
==
'replaced'
and
not
strict
:
t
=
bt
.
workflow_history
\
[
'business_template_installation_workflow'
][
-
1
][
'time'
]
...
...
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