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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
8ebfb938
Commit
8ebfb938
authored
Jan 19, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop links in correct place.
parent
255e6e64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
product/ERP5/Document/SimulatedDeliveryBuilder.py
product/ERP5/Document/SimulatedDeliveryBuilder.py
+0
-5
product/ERP5/mixin/builder.py
product/ERP5/mixin/builder.py
+6
-0
No files found.
product/ERP5/Document/SimulatedDeliveryBuilder.py
View file @
8ebfb938
...
...
@@ -130,11 +130,6 @@ class SimulatedDeliveryBuilder(BuilderMixin):
if
movement
.
isBuildable
(
business_link
):
if
movement
.
getDeliveryValueList
()
==
[]:
movement_list
.
append
(
movement
)
else
:
# drop causality links to Business Paths/States
movement
.
setCausalityList
([
q
.
getRelativeUrl
()
for
q
in
\
movement
.
getCausalityValueList
()
if
q
.
getPortalType
()
\
not
in
self
.
getPortalBusinessLinkTypeList
()])
# XXX Add predicate test
# XXX FIXME Check that there is no double in the list
# Because we can't trust simulation_select_method
...
...
product/ERP5/mixin/builder.py
View file @
8ebfb938
...
...
@@ -146,6 +146,12 @@ class BuilderMixin(XMLObject, Amount, Predicate):
root_group_node
,
delivery_relative_url_list
=
delivery_relative_url_list
,
movement_list
=
movement_list
,
**
kw
)
# After building reset links to Business Links
business_link_portal_type_list
=
self
.
getPortalBusinessLinkTypeList
()
for
movement
in
movement_list
:
movement
.
setCausalityList
([
q
.
getRelativeUrl
()
for
q
in
\
movement
.
getCausalityValueList
()
if
q
.
getPortalType
()
\
not
in
business_link_portal_type_list
])
# Call a script after building
self
.
callAfterBuildingScript
(
delivery_list
,
movement_list
,
**
kw
)
return
delivery_list
...
...
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