From d05866ccd0f5b3f1eb939dc8f2fc8fc548aa5f21 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Fri, 24 Feb 2006 21:41:01 +0000
Subject: [PATCH] Supplies are not Movement but Path, renamed the group and
 methods

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5841 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/ERP5Defaults.py |  2 +-
 product/ERP5/ERP5Site.py     | 11 +++++------
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/product/ERP5/ERP5Defaults.py b/product/ERP5/ERP5Defaults.py
index 7f9a82b822..fd2e23eb68 100755
--- a/product/ERP5/ERP5Defaults.py
+++ b/product/ERP5/ERP5Defaults.py
@@ -167,7 +167,7 @@ portal_payment_condition_type_list = ('Condition Paiement',)
 
 portal_supply_type_list = ('Purchase Supply','Sale Supply')
 
-portal_supply_movement_type_list = ('Supply Line','Supply Cell')
+portal_supply_path_type_list = ('Supply Line','Supply Cell')
 
 # This transaction lines are special because destination must be None.
 portal_balance_transaction_line_type_list = ('Balance Transaction Line',)
diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py
index 37c30162d0..1a4d75cdbf 100755
--- a/product/ERP5/ERP5Site.py
+++ b/product/ERP5/ERP5Site.py
@@ -464,13 +464,13 @@ class ERP5Site ( FolderMixIn, CMFSite ):
              self._getPortalConfiguration('portal_supply_type_list')
 
     security.declareProtected(Permissions.AccessContentsInformation,
-                               'getPortalSupplyMovementTypeList')
-    def getPortalSupplyMovementTypeList(self):
+                               'getPortalSupplyPathTypeList')
+    def getPortalSupplyPathTypeList(self):
       """
         Return supply movement types.
       """
-      return self._getPortalGroupedTypeList('supply_movement') or\
-             self._getPortalConfiguration('portal_supply_movement_type_list')
+      return self._getPortalGroupedTypeList('supply_path') or\
+             self._getPortalConfiguration('portal_supply_path_type_list')
 
     security.declareProtected(Permissions.AccessContentsInformation,
                               'getPortalAcquisitionMovementTypeList')
@@ -480,8 +480,7 @@ class ERP5Site ( FolderMixIn, CMFSite ):
       """
       return tuple(list(self.getPortalOrderMovementTypeList()) +
                    list(self.getPortalDeliveryMovementTypeList()) +
-                   list(self.getPortalInvoiceMovementTypeList()) +
-                   list(self.getPortalSupplyMovementTypeList()))
+                   list(self.getPortalInvoiceMovementTypeList()))
 
     security.declareProtected(Permissions.AccessContentsInformation,
                               'getPortalMovementTypeList')
-- 
2.30.9