Commit e2f7fb84 authored by Jérome Perrin's avatar Jérome Perrin

Don't use obsolete Supply Line portal type, use Sale Supply Line instead


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31730 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84bdbdb5
......@@ -269,8 +269,7 @@ class TestCommerce(ERP5TypeTestCase):
product_line = category.getRelativeUrl().replace('product_line/', '')
product.setProductLine(product_line)
product.setQuantityUnit('unit/piece')
supply_line = product.newContent(id='default_supply_line',
portal_type='Supply Line')
supply_line = product.newContent(portal_type='Sale Supply Line')
supply_line.setBasePrice(10 * (i + 1))
supply_line.setPricedQuantity(1)
supply_line.setDefaultResourceValue(product)
......@@ -285,8 +284,7 @@ class TestCommerce(ERP5TypeTestCase):
title='UPS Shipping : 24h')
ups.setQuantityUnit('unit/piece')
supply_line = ups.setProductLine('shipping/UPS24h')
supply_line = ups.newContent(id='default_supply_line',
portal_type='Supply Line')
supply_line = ups.newContent(portal_type='Sale Supply Line')
supply_line.setBasePrice(10)
supply_line.setPricedQuantity(1)
supply_line.setDefaultResourceValue(product)
......
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