Commit cc04dd70 authored by Jérome Perrin's avatar Jérome Perrin

Set a product line category on resources.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4779 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9297a754
...@@ -119,6 +119,13 @@ class TestOrderMixin: ...@@ -119,6 +119,13 @@ class TestOrderMixin:
portal_type='Category', portal_type='Category',
id=category_id) id=category_id)
product_line_category_list = ['apparel', ]
if len(self.category_tool.product_line.contentValues()) == 0:
for category_id in product_line_category_list:
o = self.category_tool.product_line.newContent(
portal_type='Category',
id=category_id)
def stepTic(self,**kw): def stepTic(self,**kw):
self.tic() self.tic()
...@@ -132,7 +139,8 @@ class TestOrderMixin: ...@@ -132,7 +139,8 @@ class TestOrderMixin:
resource = resource_module.newContent(portal_type=self.resource_portal_type) resource = resource_module.newContent(portal_type=self.resource_portal_type)
resource.edit( resource.edit(
title = "NotVariatedResource", title = "NotVariatedResource",
industrial_phase_list=["phase1", "phase2"] industrial_phase_list=["phase1", "phase2"],
product_line = 'apparel'
) )
sequence.edit( resource = resource ) sequence.edit( resource = resource )
...@@ -150,7 +158,8 @@ class TestOrderMixin: ...@@ -150,7 +158,8 @@ class TestOrderMixin:
resource = resource_module.newContent(portal_type=self.resource_portal_type) resource = resource_module.newContent(portal_type=self.resource_portal_type)
resource.edit( resource.edit(
title = "VariatedResource", title = "VariatedResource",
industrial_phase_list=["phase1", "phase2"] industrial_phase_list=["phase1", "phase2"],
product_line = 'apparel'
) )
size_list = ['Baby','Child/32','Child/34','Man','Woman'] size_list = ['Baby','Child/32','Child/34','Man','Woman']
resource.setSizeList(size_list) resource.setSizeList(size_list)
......
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