Commit 3ee725e6 authored by Alexandre Boeglin's avatar Alexandre Boeglin

fill and enable a preference, so that Products are created with correct

variation base categories.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20478 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 703f9b5b
......@@ -575,6 +575,12 @@ class TestResource(ERP5TypeTestCase):
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)
......
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