Commit 5cb4cbf0 authored by Yusei Tahara's avatar Yusei Tahara

Wrap _deliveryGroupProcessing by UnrestrictedMethod.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23815 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bacbca7
......@@ -34,6 +34,7 @@ from Products.ERP5.Document.Amount import Amount
from Products.ERP5.MovementGroup import MovementGroupNode
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Type.CopySupport import CopyError, tryMethodCallWithTemporaryPermission
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from DateTime import DateTime
from Acquisition import aq_parent, aq_inner
......@@ -306,14 +307,19 @@ class OrderBuilder(XMLObject, Amount, Predicate):
**kw)
return delivery_list
def _deliveryGroupProcessing(self, delivery_module, movement_group,
collect_order_list, movement_group_list=None,
delivery_to_update_list=None,
divergence_list=None,
activate_kw=None, force_update=0, **kw):
def _deliveryGroupProcessing(self, *args, **kw):
"""
Build empty delivery from a list of movement
"""
deliveryGroupProcessing = UnrestrictedMethod(self.__deliveryGroupProcessing)
return deliveryGroupProcessing(*args, **kw)
def __deliveryGroupProcessing(self, delivery_module, movement_group,
collect_order_list, movement_group_list=None,
delivery_to_update_list=None,
divergence_list=None,
activate_kw=None, force_update=0, **kw):
"""This method is wrapped by UnrestrictedMethod."""
if movement_group_list is None:
movement_group_list = []
if divergence_list is None:
......
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