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

also create a service, to prove that inventory report ignore them


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24799 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 559f0967
......@@ -121,7 +121,7 @@ class TestTradeReports(ERP5ReportTestCase):
reference=unit_id,
id=unit_id)
# Create products
# Create resources
module = self.portal.product_module
if not module.has_key('product_B'):
product = module.newContent(
......@@ -148,6 +148,13 @@ class TestTradeReports(ERP5ReportTestCase):
variation_base_category_list=['colour'],
colour_list=['colour1', 'colour2'],
)
if not self.portal.service_module.has_key('service_a'):
self.portal.service_module.newContent(
portal_type='Service',
id='service_a',
title='Service A',
reference='ref sA',
)
# and all this available to catalog
get_transaction().commit()
......@@ -536,6 +543,16 @@ class TestTradeReports(ERP5ReportTestCase):
variation_category_list=cell_key)
fifth.deliver()
# services are ignored
self._makeOneInventory(
title='Inventory 6',
simulation_state='delivered',
destination_value=self.organisation_module.Organisation_1,
start_date=DateTime(2007, 2, 2),
resource='service_module/service_a',
quantity=11,
)
get_transaction().commit()
self.tic()
......
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