[Erp5-report] r19961 - /erp5/trunk/products/ERP5/tests/testTransformation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 17 17:07:37 CET 2008


Author: alex
Date: Mon Mar 17 17:07:34 2008
New Revision: 19961

URL: http://svn.erp5.org?rev=19961&view=rev
Log:
priced_quantity should be defined on the supply_line

Modified:
    erp5/trunk/products/ERP5/tests/testTransformation.py

Modified: erp5/trunk/products/ERP5/tests/testTransformation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testTransformation.py?rev=19961&r1=19960&r2=19961&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testTransformation.py (original)
+++ erp5/trunk/products/ERP5/tests/testTransformation.py Mon Mar 17 17:07:34 2008
@@ -114,7 +114,6 @@
       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 @@
 #                     ['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(




More information about the Erp5-report mailing list