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

install erp5_invoicing when needed


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18071 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 30c69e76
......@@ -80,7 +80,8 @@ class TestAccountingRulesMixin:
def getBusinessTemplateList(self):
""" Return the list of business templates. """
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_accounting')
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing')
def getAccountModule(self):
return getattr(self.getPortal(), 'account',
......
......@@ -58,7 +58,7 @@ class TestBudget(ERP5TypeTestCase):
Return the list of required business templates.
"""
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_budget')
'erp5_invoicing', 'erp5_budget')
def login(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
......
......@@ -84,6 +84,7 @@ class TestImmobilisationMixin(ERP5TypeTestCase):
"erp5_trade",
"erp5_pdm",# Needed by accounting
"erp5_accounting",
"erp5_invoicing",
"erp5_apparel", # In order to use items
"erp5_immobilisation",
)
......
......@@ -72,7 +72,7 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase):
"""Business Templates required for this test.
"""
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel',
'erp5_accounting')
'erp5_accounting', 'erp5_invoicing')
def afterSetUp(self, quiet=1, run=run_all_test):
self.login()
......
......@@ -121,7 +121,7 @@ class TestInvoice(TestPackingListMixin,
def getBusinessTemplateList(self):
""" """
return TestPackingListMixin.getBusinessTemplateList(self) + (
'erp5_accounting',)
'erp5_accounting', 'erp5_invoicing')
def stepTic(self, **kw):
self.tic()
......
......@@ -138,7 +138,8 @@ class TestInvoiceVAT(ERP5TypeTestCase):
def getBusinessTemplateList(self):
""" """
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',)
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing')
def _makeAccount(self, **kw):
"""Creates an Account."""
......
......@@ -83,7 +83,7 @@ class TestRuleMixin(TestOrderMixin):
cataloging the version property.
"""
return TestOrderMixin.getBusinessTemplateList(self) + ('erp5_accounting',
'erp5_dms_mysql_innodb_catalog',)
'erp5_invoicing', 'erp5_dms_mysql_innodb_catalog',)
def createPackingList(self):
"""
......
......@@ -54,6 +54,7 @@ target_business_templates = (
'erp5_pdf_style',
'erp5_pdm',
'erp5_accounting',
'erp5_invoicing',
'erp5_apparel',
......
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