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
Alexander Emmerich
erp5
Commits
380a7837
Commit
380a7837
authored
Apr 10, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix race condition when unlinking simulation movement from deleted delivery line
parent
057ab7f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_movement_simulation_interaction_workflow/scripts/DeliveryMovement_unlinkSimulation.xml
...on_workflow/scripts/DeliveryMovement_unlinkSimulation.xml
+6
-0
No files found.
bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_movement_simulation_interaction_workflow/scripts/DeliveryMovement_unlinkSimulation.xml
View file @
380a7837
...
...
@@ -60,6 +60,12 @@ role, but someday we\'ll have to move this to unrestricted environment.\n
"""\n
delivery_movement = state_change[\'object\']\n
\n
# Always modify movement even if there is no related movement simulation,\n
# because a concurrent transaction may be linking one to this movement\n
# (which would modify the local index for "delivery" category).\n
# In such case, one of the 2 transactions must be restarted.\n
delivery_movement.serialize()\n
\n
# Clean simulation\n
simulation_movement_list = delivery_movement.getDeliveryRelatedValueList(\n
portal_type="Simulation Movement")\n
...
...
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