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
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
f8c76018
Commit
f8c76018
authored
Jan 29, 2018
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder: Hackish immediate reindex of order to work for parallel build
parent
6e6f19f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
product/ERP5/mixin/builder.py
product/ERP5/mixin/builder.py
+6
-3
No files found.
product/ERP5/mixin/builder.py
View file @
f8c76018
...
...
@@ -558,10 +558,12 @@ class BuilderMixin(XMLObject, Amount, Predicate):
Create a new delivery in case where a builder may not update
an existing one.
"""
return
delivery_module
.
newContent
(
delivery
=
delivery_module
.
newContent
(
portal_type
=
self
.
getDeliveryPortalType
(),
created_by_builder
=
1
,
activate_kw
=
activate_kw
)
created_by_builder
=
1
)
delivery
.
autoPlan
()
delivery
.
immediateReindexObject
()
return
delivery
def
_processDeliveryGroup
(
self
,
delivery_module
,
movement_group_node
,
collect_order_list
,
movement_group_node_list
=
None
,
...
...
@@ -625,6 +627,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
if
property_dict
:
property_dict
.
setdefault
(
'edit_order'
,
(
'stop_date'
,
'start_date'
))
delivery
.
edit
(
**
property_dict
)
delivery
.
immediateReindexObject
()
# Then, create delivery line
for
grouped_node
in
movement_group_node
.
getGroupList
():
...
...
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