Commit 53b2f592 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: trade condition has more than one supply line

parent b7d369df
......@@ -172,7 +172,9 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
"sale_trade_condition_module/default_subscription_trade_condition",
sale_trade_condition.getRelativeUrl()
)
sale_supply_line = sale_trade_condition.contentValues(portql_type="Sale Supply Line")[0]
sale_supply_line = sale_trade_condition.searchFolder(
portal_type="Sale Supply Line",
resource__relative_url='service_module/slapos_instance_subscription')[0]
open_sale_order_line_list = open_sale_order.contentValues(
portal_type='Open Sale Order Line')
......@@ -253,7 +255,9 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
"sale_trade_condition_module/default_subscription_trade_condition",
sale_trade_condition.getRelativeUrl()
)
sale_supply_line = sale_trade_condition.contentValues(portql_type="Sale Supply Line")[0]
sale_supply_line = sale_trade_condition.searchFolder(
portal_type="Sale Supply Line",
resource__relative_url='service_module/slapos_instance_subscription')[0]
self.assertEqual(1, len(open_sale_order_line_list))
line = open_sale_order_line_list[0].getObject()
......@@ -434,7 +438,9 @@ class TestInstanceTree_requestUpdateOpenSaleOrder(SlapOSTestCaseMixin):
"sale_trade_condition_module/default_subscription_trade_condition",
sale_trade_condition.getRelativeUrl()
)
sale_supply_line = sale_trade_condition.contentValues(portql_type="Sale Supply Line")[0]
sale_supply_line = sale_trade_condition.searchFolder(
portal_type="Sale Supply Line",
resource__relative_url='service_module/slapos_instance_subscription')[0]
open_sale_order_line_list = open_sale_order.contentValues(
portal_type='Open Sale Order Line')
......
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