Commit 146d990e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

at least one default_delivery_rule should be validated here to confirm

 Sale Packing List in afterSetUp().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25299 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af571b3f
...@@ -47,9 +47,12 @@ class TestRuleMixin(TestOrderMixin): ...@@ -47,9 +47,12 @@ class TestRuleMixin(TestOrderMixin):
self.getRuleTool().newContent(portal_type="Order Rule", self.getRuleTool().newContent(portal_type="Order Rule",
id='default_order_rule', id='default_order_rule',
reference='default_order_rule', version='1') reference='default_order_rule', version='1')
self.getRuleTool().newContent(portal_type="Delivery Rule", delivery_rule = self.getRuleTool().newContent(portal_type="Delivery Rule",
id='default_delivery_rule', id='default_delivery_rule',
reference='default_delivery_rule', version='1') reference='default_delivery_rule', version='1')
# at least one default_delivery_rule should be validated here to
# confirm Sale Packing List in afterSetUp()
delivery_rule.validate()
# create packing list if necessary # create packing list if necessary
pl_module = self.getPortal().getDefaultModule( pl_module = self.getPortal().getDefaultModule(
self.packing_list_portal_type) self.packing_list_portal_type)
......
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