Commit 36d1102e authored by Yusei Tahara's avatar Yusei Tahara

Builder always must work and finish building even if user who calls builder...

Builder always must work and finish building even if user who calls builder don't have permission to change target document.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25536 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4c46bab5
...@@ -672,9 +672,17 @@ class OrderBuilder(XMLObject, Amount, Predicate): ...@@ -672,9 +672,17 @@ class OrderBuilder(XMLObject, Amount, Predicate):
delivery_movement._edit(force_update=1, **property_dict) delivery_movement._edit(force_update=1, **property_dict)
simulation_movement.edit(delivery_ratio=1) simulation_movement.edit(delivery_ratio=1)
def callAfterBuildingScript(self, delivery_list, movement_list=None, **kw): def callAfterBuildingScript(self, *args, **kw):
""" """
Call script on each delivery built Call script on each delivery built.
"""
callAfterBuildingScript = UnrestrictedMethod(self._callAfterBuildingScript)
return callAfterBuildingScript(*args, **kw)
def _callAfterBuildingScript(self, delivery_list, movement_list=None, **kw):
"""
Call script on each delivery built.
This method is wrapped by UnrestrictedMethod.
""" """
if not len(delivery_list): if not len(delivery_list):
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment