From af4bb8cc5af34a31dfad4d426f5c35b0e565410f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Wed, 4 Aug 2010 13:14:01 +0000 Subject: [PATCH] use stop_date as rules changed git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37474 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testPackingList.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testPackingList.py b/product/ERP5/tests/testPackingList.py index b5147990fb..16077eac5d 100644 --- a/product/ERP5/tests/testPackingList.py +++ b/product/ERP5/tests/testPackingList.py @@ -640,6 +640,16 @@ class TestPackingListMixin(TestOrderMixin): self._solveDeliveryGroupDivergence(packing_list, 'start_date', simulation_movement_list[-1].getRelativeUrl()) + def stepUnifyStopDateWithPrevision(self,sequence=None, sequence_list=None, **kw): + """ + Solve divergence on stop date using unify + """ + packing_list = sequence.get('packing_list') + applied_rule = sequence.get('applied_rule') + simulation_movement_list = applied_rule.objectValues() + self._solveDeliveryGroupDivergence(packing_list, 'stop_date', + simulation_movement_list[-1].getRelativeUrl()) + def _solveDeliveryGroupDivergence(self, obj, property, target_url): kw = {'delivery_group_listbox': {property:{'choice':target_url}}} @@ -1278,11 +1288,11 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : stepSetContainerFullQuantity \ stepTic \ stepCheckPackingListIsPacked \ - stepModifySimulationLineStartDate \ + stepModifySimulationLineStopDate \ stepTic \ stepCheckPackingListIsDiverged \ stepCheckPackingListIsDivergent \ - stepUnifyStartDateWithPrevision \ + stepUnifyStopDateWithPrevision \ stepTic \ ' # XXX Check if there is a new packing list created -- 2.30.9