Commit 3f116f22 authored by Jérome Perrin's avatar Jérome Perrin

Install erp5_accounting for invoice lines generation

Set variation category list on packing list line



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7257 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0665d3b7
......@@ -84,8 +84,8 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase):
def getBusinessTemplateList(self):
"""Business Templates required for this test.
"""
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel',)
# 'erp5_accounting')
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel',
'erp5_accounting')
def afterSetUp(self, quiet=1, run=run_all_test):
self.login()
......@@ -1464,10 +1464,11 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase):
['morphology/' + x.getRelativeUrl() for x in resource_value.objectValues(portal_type='Apparel Model Morphology Variation')]
packing_list_line.edit(
resource_value = resource_value,
default_resource_value = resource_value,
categories = category_list + [x for x in variation_category_list if x not in category_list]
)
resource_value=resource_value,
default_resource_value=resource_value,
categories=category_list,
variation_category_list=variation_category_list,
)
# Set cell range
packing_list_line.updateCellRange(base_id='quantity')
......
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