Commit a21e4b64 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

delivery simulation rule instead of order root simulatino rule is handling...

delivery simulation rule instead of order root simulatino rule is handling divergence in packing lists.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33403 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f7ea9fb3
......@@ -438,14 +438,14 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
def afterSetUp(self):
TestERP5SimulationMixin.afterSetUp(self)
new_order_rule = self.portal.portal_rules.new_order_root_simulation_rule
new_order_rule['quantity_tester'].edit(quantity=None,
new_delivery_rule = self.portal.portal_rules.new_delivery_simulation_rule
new_delivery_rule['quantity_tester'].edit(quantity=None,
quantity_range_max=2,
quantity_range_min=-1)
def beforeTearDown(self):
new_order_rule = self.portal.portal_rules.new_order_root_simulation_rule
new_order_rule['quantity_tester'].edit(quantity=0,
new_delivery_rule = self.portal.portal_rules.new_delivery_simulation_rule
new_delivery_rule['quantity_tester'].edit(quantity=0,
quantity_range_max=None,
quantity_range_min=None)
transaction.commit()
......
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