Commit 43a7baef authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: expect Sale Packing List to use a Software Product

parent db46ba5e
......@@ -1105,7 +1105,7 @@ return dict(vads_url_already_registered="%s/already_registered" % (payment_trans
self.assertEqual(len(sale_packing_list.objectValues()), 2)
sale_packing_list_line = [ i for i in sale_packing_list.objectValues()
if i.getResource() == "service_module/slapos_instance_subscription"][0]
if i.getResourceValue().getPortalType() == "Software Product"][0]
quantity = subscription_request.getQuantity()
if sale_trade_condition.getPriceCurrency() == "currency_module/CNY":
......
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