[Erp5-report] r20478 - /erp5/trunk/products/ERP5/tests/testResource.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Apr 14 11:42:21 CEST 2008
Author: alex
Date: Mon Apr 14 11:42:20 2008
New Revision: 20478
URL: http://svn.erp5.org?rev=20478&view=rev
Log:
fill and enable a preference, so that Products are created with correct
variation base categories.
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=20478&r1=20477&r2=20478&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testResource.py (original)
+++ erp5/trunk/products/ERP5/tests/testResource.py Mon Apr 14 11:42:20 2008
@@ -575,6 +575,12 @@
if not run: return
i = 1
self.logMessage("Starting New Option Pricing Case %i..." % i)
+ # Fill the PDM preferences
+ preference = self.portal.portal_preferences.default_site_preference
+ preference.setPreferredProductOptionalVariationBaseCategoryList(['industrial_phase'])
+ preference.enable()
+ get_transaction().commit()
+ self.tic()
# Create another product/supply, in order to be sure that the
# nothing will be generated from this supply!
self.logMessage("Creating fake product...", tab=1)
More information about the Erp5-report
mailing list