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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
erp5
Commits
3710e1d3
Commit
3710e1d3
authored
Apr 23, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delivery: dereference catalog result before using it several times
parent
9093a999
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
product/ERP5/Document/Delivery.py
product/ERP5/Document/Delivery.py
+1
-0
No files found.
product/ERP5/Document/Delivery.py
View file @
3710e1d3
...
@@ -982,6 +982,7 @@ class Delivery(XMLObject, ImmobilisationDelivery,
...
@@ -982,6 +982,7 @@ class Delivery(XMLObject, ImmobilisationDelivery,
"""
"""
divergent_tester_list
=
[]
divergent_tester_list
=
[]
for
simulation_movement
in
self
.
_getAllRelatedSimulationMovementList
():
for
simulation_movement
in
self
.
_getAllRelatedSimulationMovementList
():
simulation_movement
=
simulation_movement
.
getObject
()
rule
=
simulation_movement
.
getParentValue
().
getSpecialiseValue
()
rule
=
simulation_movement
.
getParentValue
().
getSpecialiseValue
()
for
tester
in
rule
.
_getDivergenceTesterList
(
exclude_quantity
=
False
):
for
tester
in
rule
.
_getDivergenceTesterList
(
exclude_quantity
=
False
):
if
tester
.
explain
(
simulation_movement
)
not
in
(
None
,
[]):
if
tester
.
explain
(
simulation_movement
)
not
in
(
None
,
[]):
...
...
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