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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
247a3f4d
Commit
247a3f4d
authored
Jun 20, 2024
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_simulation: fix the case when it's a list
parent
763b463b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
bt5/erp5_simulation/ToolComponentTemplateItem/portal_components/tool.erp5.SolverProcessTool.py
...lateItem/portal_components/tool.erp5.SolverProcessTool.py
+9
-4
No files found.
bt5/erp5_simulation/ToolComponentTemplateItem/portal_components/tool.erp5.SolverProcessTool.py
View file @
247a3f4d
...
@@ -98,10 +98,15 @@ class SolverProcessTool(BaseTool):
...
@@ -98,10 +98,15 @@ class SolverProcessTool(BaseTool):
# XXX using delivery's solver category is not so good idea,
# XXX using delivery's solver category is not so good idea,
# because we might want to solve several deliveries with one
# because we might want to solve several deliveries with one
# solver process, several users want to solve one document etc.
# solver process, several users want to solve one document etc.
delivery
=
delivery_or_movement
.
getRootDeliveryValue
()
if
not
isinstance
(
delivery_or_movement
,
(
tuple
,
list
)):
solver_list
=
delivery
.
getSolverValueList
()
delivery_or_movement
=
[
delivery_or_movement
]
solver_list
.
append
(
new_solver
)
delivery
.
setSolverValueList
(
solver_list
)
for
x
in
delivery_or_movement
:
delivery
=
x
.
getRootDeliveryValue
()
solver_list
=
delivery
.
getSolverValueList
()
if
new_solver
not
in
solver_list
:
solver_list
.
append
(
new_solver
)
delivery
.
setSolverValueList
(
solver_list
)
return
new_solver
return
new_solver
...
...
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