From 27193ebee01a2db2b95f7986faf1d535f29c2e21 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Wed, 6 Feb 2008 21:52:58 +0000 Subject: [PATCH] Make updateFromSimulation unrestricted. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19116 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/DeliveryBuilder.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product/ERP5/Document/DeliveryBuilder.py b/product/ERP5/Document/DeliveryBuilder.py index 8eb30b3133..d6cacf6a02 100644 --- a/product/ERP5/Document/DeliveryBuilder.py +++ b/product/ERP5/Document/DeliveryBuilder.py @@ -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) -- 2.30.9