Commit 6e611fb7 authored by wenjie.zheng's avatar wenjie.zheng

testInventory.py: deploy universal function to gain compatibility.

parent 06459610
......@@ -2742,8 +2742,8 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase):
Make sure that changing workflow state after delivered changes
records in stock table.
"""
delivered_state = self.portal.portal_workflow.inventory_workflow.states['delivered']
delivered_state.transitions = delivered_state.transitions + ('cancel',)
delivered_state = self.portal.portal_workflow.inventory_workflow.getStateValueList()['delivered']
delivered_state.addPossibleTransition('cancel')
self.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