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):
"""
pplm = self.getPortal().purchase_packing_list_module
splm = self.getPortal().sale_packing_list_module
iplm = self.getPortal().internal_packing_list_module
def deliverPackingList(pl):
"""step through all steps of packing list workflow."""
......@@ -70,7 +71,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
# we create content :
# 1 purchase 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):
ppl = pplm.newContent(
portal_type='Purchase Packing List',
......@@ -95,13 +96,13 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
quantity=month*10)
deliverPackingList(spl)
ipl = splm.newContent(
portal_type='Sale Packing List',
ipl = iplm.newContent(
portal_type='Internal Packing List',
source_value = sequence.get('organisation1'),
destination_value = sequence.get('organisation1'),
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'),
quantity=month*10)
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