Commit 5d8506f5 authored by Sebastien Robin's avatar Sebastien Robin

remove getPortalBusinessStateTypeList method and

business_state interface

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@34932 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9998c317
......@@ -59,7 +59,7 @@ class BusinessState(XMLObject):
)
# Declarative interfaces
zope.interface.implements(interfaces.IBusinessState
zope.interface.implements(
)
# IBusinessCompletable implementation
......
......@@ -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.
......
......@@ -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):
......
# -*- 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
"""
......@@ -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',
......
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