From aac85c7f3bec57c3e89027b528e4141ded7d9745 Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Mon, 21 Jun 2004 16:58:20 +0000
Subject: [PATCH] Remove getSimulationState because this is now defined in
 AccountingTransaction.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1057 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Invoice.py | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/product/ERP5/Document/Invoice.py b/product/ERP5/Document/Invoice.py
index 54e2ef4ea9..d55d267ddd 100755
--- a/product/ERP5/Document/Invoice.py
+++ b/product/ERP5/Document/Invoice.py
@@ -129,19 +129,10 @@ An order..."""
       """
       aggregate = self.Invoice_zGetTotal()[0]
       return aggregate.total_quantity
-    
+
     security.declareProtected(Permissions.AccessContentsInformation, 'getTotalNetPrice')
     def getTotalNetPrice(self):
       """
         Returns the total net price for this invoice
       """
       return self.Invoice_zGetTotalNetPrice()
-      
-    security.declareProtected(Permissions.AccessContentsInformation, 'getSimulationState')
-    def getSimulationState(self, id_only=1):
-      """
-        Returns the current state in simulation
-      """
-      portal_workflow = getToolByName(self, 'portal_workflow')
-      wf = portal_workflow.getWorkflowById('accounting_workflow')
-      return wf._getWorkflowStateOf(self, id_only=id_only )
-- 
2.30.9