Commit 27193ebe authored by Yoshinori Okuji's avatar Yoshinori Okuji

Make updateFromSimulation unrestricted.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19116 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 83edd14b
......@@ -33,6 +33,7 @@ from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire
from Products.ERP5 import MovementGroup
from Products.ERP5Type.Utils import convertToUpperCase
from Products.ERP5.Document.OrderBuilder import OrderBuilder
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from zLOG import LOG
......@@ -176,6 +177,11 @@ class DeliveryBuilder(OrderBuilder):
Update all lines of this transaction based on movements in the
simulation related to this transaction.
"""
updateFromSimulation = UnrestrictedMethod(self._updateFromSimulation)
return updateFromSimulation(delivery_relative_url,
create_new_delivery=create_new_delivery)
def _updateFromSimulation(self, delivery_relative_url, create_new_delivery=1):
# We have to get a delivery, else, raise a Error
delivery = self.getPortalObject().restrictedTraverse(delivery_relative_url)
......
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