Commit ec419bf5 authored by Yusei Tahara's avatar Yusei Tahara

Set quantity to 1, otherwise applied rule is not made.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38941 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c0aa766
...@@ -392,7 +392,7 @@ class TestBPMImplementation(TestBPMMixin): ...@@ -392,7 +392,7 @@ class TestBPMImplementation(TestBPMMixin):
# mock order # mock order
order = self.portal.sale_order_module.newContent(portal_type="Sale Order") order = self.portal.sale_order_module.newContent(portal_type="Sale Order")
order_line = order.newContent(portal_type="Sale Order Line") order_line = order.newContent(portal_type="Sale Order Line", quantity=1)
# make simulation # make simulation
order.order() order.order()
......
...@@ -92,7 +92,8 @@ class TestRuleMixin(TestOrderMixin): ...@@ -92,7 +92,8 @@ class TestRuleMixin(TestOrderMixin):
self.packing_list_portal_type) self.packing_list_portal_type)
pl = pl_module.newContent(portal_type=self.packing_list_portal_type, pl = pl_module.newContent(portal_type=self.packing_list_portal_type,
source_section='group/a', destination_section='group/b') source_section='group/a', destination_section='group/b')
pl.newContent(portal_type=self.packing_list_line_portal_type, id='line') pl.newContent(portal_type=self.packing_list_line_portal_type, id='line',
quantity=1)
pl.setStartDate("2007-07-01") pl.setStartDate("2007-07-01")
transaction.commit() transaction.commit()
self.tic() self.tic()
......
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