Commit 27115a9a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

specify packing list line more accurately.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32512 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 002641c0
......@@ -684,8 +684,11 @@ class TestPackingListMixin(TestOrderMixin):
"""
Look if the packing list has new previsions
"""
old_packing_list_line = sequence.get('packing_list_line')
packing_list_line = old_packing_list_line.aq_parent[str(int(old_packing_list_line.getId())-1)]
order_line = sequence.get('order_line')
packing_list_line = order_line.getCausalityRelatedValue()
old_packing_list_line = [x for x in \
sequence.get('packing_list').objectValues() \
if x != packing_list_line][0]
resource = sequence.get('resource')
self.assertEquals(old_packing_list_line.getQuantity(), 0)
self.assertNotEquals(old_packing_list_line.getResourceValue(), resource)
......
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