Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
wenjie.zheng
erp5_workflow
Commits
ed4e3e4e
Commit
ed4e3e4e
authored
Feb 11, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't pass delivery_relative_url_list to searchMovementList to prevent a catalog warning
parent
7558a6b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
product/ERP5/mixin/builder.py
product/ERP5/mixin/builder.py
+3
-6
No files found.
product/ERP5/mixin/builder.py
View file @
ed4e3e4e
...
@@ -130,7 +130,6 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -130,7 +130,6 @@ class BuilderMixin(XMLObject, Amount, Predicate):
# use only Business Link related movements
# use only Business Link related movements
kw
[
'causality_uid'
]
=
[
link_value
.
getUid
()
for
link_value
in
business_link_value_list
]
kw
[
'causality_uid'
]
=
[
link_value
.
getUid
()
for
link_value
in
business_link_value_list
]
movement_list
=
self
.
searchMovementList
(
movement_list
=
self
.
searchMovementList
(
delivery_relative_url_list
=
delivery_relative_url_list
,
applied_rule_uid
=
applied_rule_uid
,
applied_rule_uid
=
applied_rule_uid
,
**
kw
)
**
kw
)
if
not
movement_list
:
if
not
movement_list
:
...
@@ -234,11 +233,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -234,11 +233,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
Returns a list of simulation movements (or something similar to
Returns a list of simulation movements (or something similar to
simulation movements) to construct a new delivery.
simulation movements) to construct a new delivery.
"""
"""
method_id
=
self
.
getSimulationSelectMethodId
()
method_id
=
self
.
getSimulationSelectMethodId
()
or
'portal_catalog'
if
method_id
:
select_method
=
getattr
(
self
.
getPortalObject
(),
method_id
)
select_method
=
getattr
(
self
.
getPortalObject
(),
method_id
)
else
:
select_method
=
self
.
getPortalObject
().
portal_catalog
movement_list
=
[]
# use list to preserve order
movement_list
=
[]
# use list to preserve order
movement_set
=
set
()
movement_set
=
set
()
for
movement
in
select_method
(
**
kw
):
for
movement
in
select_method
(
**
kw
):
...
...
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