Commit 3ac41969 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use the real Internal Packing List for intenal packing lists.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29975 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d0011ad
...@@ -57,6 +57,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase): ...@@ -57,6 +57,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
""" """
pplm = self.getPortal().purchase_packing_list_module pplm = self.getPortal().purchase_packing_list_module
splm = self.getPortal().sale_packing_list_module splm = self.getPortal().sale_packing_list_module
iplm = self.getPortal().internal_packing_list_module
def deliverPackingList(pl): def deliverPackingList(pl):
"""step through all steps of packing list workflow.""" """step through all steps of packing list workflow."""
...@@ -70,7 +71,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase): ...@@ -70,7 +71,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
# we create content : # we create content :
# 1 purchase packing list # 1 purchase packing list
# 1 sale packing list # 1 sale packing list
# 1 internal packing list (actually sale with same source) # 1 internal packing list
for month in range(1, 11): for month in range(1, 11):
ppl = pplm.newContent( ppl = pplm.newContent(
portal_type='Purchase Packing List', portal_type='Purchase Packing List',
...@@ -95,13 +96,13 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase): ...@@ -95,13 +96,13 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
quantity=month*10) quantity=month*10)
deliverPackingList(spl) deliverPackingList(spl)
ipl = splm.newContent( ipl = iplm.newContent(
portal_type='Sale Packing List', portal_type='Internal Packing List',
source_value = sequence.get('organisation1'), source_value = sequence.get('organisation1'),
destination_value = sequence.get('organisation1'), destination_value = sequence.get('organisation1'),
start_date=DateTime(2005, month, 1), start_date=DateTime(2005, month, 1),
) )
ipl.newContent( portal_type='Sale Packing List Line', ipl.newContent( portal_type='Internal Packing List Line',
resource_value=sequence.get('resource'), resource_value=sequence.get('resource'),
quantity=month*10) quantity=month*10)
deliverPackingList(ipl) deliverPackingList(ipl)
......
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