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
772d49e9
Commit
772d49e9
authored
Jul 19, 2019
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder: Update Immediate Reindex Method
parent
e29fb899
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5/mixin/builder.py
product/ERP5/mixin/builder.py
+4
-4
No files found.
product/ERP5/mixin/builder.py
View file @
772d49e9
...
...
@@ -35,9 +35,11 @@ from Products.ERP5Type.XMLObject import XMLObject
from
Products.ERP5Type.Core.Predicate
import
Predicate
from
Products.ERP5.Document.Amount
import
Amount
from
Products.ERP5.MovementGroup
import
MovementGroupNode
from
Products.ERP5Type.ImmediateReindexContextManager
import
ImmediateReindexContextManager
from
Products.ERP5Type.TransactionalVariable
import
getTransactionalVariable
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
Products.ERP5.ExplanationCache
import
_getExplanationCache
from
DateTime
import
DateTime
from
Acquisition
import
aq_parent
,
aq_inner
...
...
@@ -780,10 +782,8 @@ class BuilderMixin(XMLObject, Amount, Predicate):
self
.
_setUpdated
(
delivery
,
'delivery'
)
if
property_dict
:
property_dict
.
setdefault
(
'edit_order'
,
(
'stop_date'
,
'start_date'
))
delivery
.
_edit
(
reindex_object
=
1
,
**
property_dict
)
if
created
:
delivery
.
immediateReindexObject
()
with
ImmediateReindexContextManager
()
as
immediate_reindex_context_manager
:
delivery
.
_edit
(
immediate_reindex
=
immediate_reindex_context_manager
,
**
property_dict
)
# 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