diff --git a/product/ERP5/Document/BusinessState.py b/product/ERP5/Document/BusinessState.py index b4dcabf4e91d26c47476b4ec25fa541d7ff60aec..ac227e6673ff5edc9592a128bdc4cbd24b6c2372 100644 --- a/product/ERP5/Document/BusinessState.py +++ b/product/ERP5/Document/BusinessState.py @@ -59,7 +59,7 @@ class BusinessState(XMLObject): ) # Declarative interfaces - zope.interface.implements(interfaces.IBusinessState + zope.interface.implements( ) # IBusinessCompletable implementation diff --git a/product/ERP5/ERP5Defaults.py b/product/ERP5/ERP5Defaults.py index 199bfaa01c84bf91bd6199c70123b5bfce868089..6d56eb544c3c6c6afa65574c9ba162257113d51e 100644 --- a/product/ERP5/ERP5Defaults.py +++ b/product/ERP5/ERP5Defaults.py @@ -186,7 +186,6 @@ portal_supply_type_list = ('Purchase Supply','Sale Supply') portal_supply_path_type_list = ('Supply Line','Supply Cell') portal_business_process_type_list = ('Business Process',) -portal_business_state_type_list = ('Business State',) portal_business_path_type_list = ('Business Path',) # This transaction lines are special because destination must be None. diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py index bcc5920930ec1c90f1ab7972518290ab1b3508ff..cf75c26dac843981f878eca0031f789e656c12ec 100644 --- a/product/ERP5/ERP5Site.py +++ b/product/ERP5/ERP5Site.py @@ -784,15 +784,6 @@ class ERP5Site(FolderMixIn, CMFSite): return self._getPortalGroupedTypeList('business_process') or \ self._getPortalConfiguration('portal_business_process_type_list') - security.declareProtected(Permissions.AccessContentsInformation, - 'getPortalBusinessStateTypeList') - def getPortalBusinessStateTypeList(self): - """ - Return business state types. - """ - return self._getPortalGroupedTypeList('business_state') or \ - self._getPortalConfiguration('portal_business_state_type_list') - security.declareProtected(Permissions.AccessContentsInformation, 'getPortalBusinessPathTypeList') def getPortalBusinessPathTypeList(self): diff --git a/product/ERP5/interfaces/business_state.py b/product/ERP5/interfaces/business_state.py deleted file mode 100644 index aca70145d048f81d0d7d9f6eb41f87114a0240b9..0000000000000000000000000000000000000000 --- a/product/ERP5/interfaces/business_state.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Copyright (c) 2009 Nexedi SA and Contributors. All Rights Reserved. -# Jean-Paul Smets-Solanes <jp@nexedi.com> -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsability of assessing all potential -# consequences resulting from its eventual inadequacies and bugs -# End users who are looking for a ready-to-use solution with commercial -# garantees and support are strongly adviced to contract a Free Software -# Service Company -# -# This program is Free Software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -############################################################################## -""" -Products.ERP5.interfaces.business_state -""" - -from Products.ERP5.interfaces.business_completable import IBusinessCompletable - -class IBusinessState(IBusinessCompletable): - """Business State interface specification - - TODO: - - add methods if any or remove if nothing specific to Business State - """ diff --git a/product/ERP5/tests/testAccountingRules.py b/product/ERP5/tests/testAccountingRules.py index 7f9a723a8bbf24fe5a46bad1c9448fbe64b0f89b..debd6e5edf87908813f4f0b6fd8dc67ec6cd9757 100644 --- a/product/ERP5/tests/testAccountingRules.py +++ b/product/ERP5/tests/testAccountingRules.py @@ -95,7 +95,7 @@ class TestAccountingRulesMixin: def getBusinessTemplateList(self): """ Return the list of business templates. """ return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_accounting', - 'erp5_invoicing', 'erp5_simplified_invoicing') + 'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_simulation') def getAccountModule(self): return getattr(self.getPortal(), 'account',