[Erp5-report] r7564 - /erp5/trunk/products/ERP5/tests/testResource.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 1 00:07:16 CEST 2006
Author: jerome
Date: Thu Jun 1 00:07:10 2006
New Revision: 7564
URL: http://svn.erp5.org?rev=7564&view=rev
Log:
Since price_category is now acquired on the supply line, then supplies
from this test have the same number of categories. The number of
categories is used in Resource._pricingSortMethod to assign priorities
on available supplies, so the priority is random.
set price_currency on all supplies restore the difference in category
count.
Modified:
erp5/trunk/products/ERP5/tests/testResource.py
Modified: erp5/trunk/products/ERP5/tests/testResource.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testResource.py?rev=7564&r1=7563&r2=7564&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testResource.py (original)
+++ erp5/trunk/products/ERP5/tests/testResource.py Thu Jun 1 00:07:10 2006
@@ -73,7 +73,7 @@
Install needed business template
"""
# Trade is needeed for pricing
- return ('erp5_base','erp5_pdm','erp5_trade','erp5_apparel')
+ return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel', )
def getTitle(self):
return "Resource"
@@ -706,6 +706,7 @@
supply = supply_module.newContent(
portal_type=self.supply_portal_type,
title='FakeSupply%s' % i,
+ price_currency_value=currency,
destination_value=node)
self.logMessage("Creating fake supply line %s..." % i, tab=1)
supply_line = supply.newContent(
More information about the Erp5-report
mailing list