Commit 6ed1517a authored by Alexandre Boeglin's avatar Alexandre Boeglin

priced_quantity should be defined on the supply_line

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19961 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 72f3ad0e
......@@ -114,7 +114,6 @@ class TestTransformation(TestOrderMixin, ERP5TypeTestCase):
get_transaction().commit()
self.tic()
component.setPricedQuantity(component_info['quantity'])
component.setVariationBaseCategoryList(['variation'])
component.setPVariationBaseCategoryList(['variation'])
# Variation are automatically acquired if they are individual variation.
......@@ -122,7 +121,8 @@ class TestTransformation(TestOrderMixin, ERP5TypeTestCase):
# ['variation/' + x.getRelativeUrl() for x in variations] )
# Set the price
supply_line = component.newContent(portal_type='Supply Line')
supply_line.edit( mapped_value_property_list = ['base_price'] )
supply_line.edit(mapped_value_property_list=['base_price'],
priced_quantity=component_info['quantity'])
component_prices = component_info['prices']
if len(component_prices) == 1:
supply_line.edit(
......
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