Commit c51066a4 authored by Łukasz Nowak's avatar Łukasz Nowak

- use common categories for product and component

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22264 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ca6efcfa
...@@ -55,8 +55,6 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -55,8 +55,6 @@ class TestProductionOrderMixin(TestOrderMixin):
colour_list = ['green','blue'] colour_list = ['green','blue']
mrp_size_list = ['Man','Woman'] mrp_size_list = ['Man','Woman']
brand_list = ['new',]
composition_list = ['full',]
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
...@@ -102,18 +100,6 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -102,18 +100,6 @@ class TestProductionOrderMixin(TestOrderMixin):
portal_type='Category', portal_type='Category',
id=category_id) id=category_id)
if len(self.category_tool.brand.contentValues()) == 0:
for category_id in self.brand_list:
o = self.category_tool.brand.newContent(
portal_type='Category',
id=category_id)
if len(self.category_tool.composition.contentValues()) == 0:
for category_id in self.composition_list:
o = self.category_tool.composition.newContent(
portal_type='Category',
id=category_id)
def stepCreateBrandCompositionVariatedComponent1(self,sequence=None, sequence_list=None, \ def stepCreateBrandCompositionVariatedComponent1(self,sequence=None, sequence_list=None, \
**kw): **kw):
""" """
...@@ -125,9 +111,9 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -125,9 +111,9 @@ class TestProductionOrderMixin(TestOrderMixin):
portal_type=self.component_portal_type) portal_type=self.component_portal_type)
resource.edit( resource.edit(
title = "ColourSizeVariatedComponent1", title = "ColourSizeVariatedComponent1",
variation_base_category_list = ['brand','composition'], variation_base_category_list = ['colour','size'],
) )
resource.setVariationCategoryList(['brand/'+q for q in self.mrp_size_list] + ['composition/'+q for q in self.colour_list]) resource.setVariationCategoryList(['colour/'+q for q in self.mrp_size_list] + ['size/'+q for q in self.colour_list])
sequence.edit(component1=resource) sequence.edit(component1=resource)
def stepCreateColourSizeVariatedResource(self, sequence=None, sequence_list=None, \ def stepCreateColourSizeVariatedResource(self, sequence=None, sequence_list=None, \
......
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