Commit d05866cc authored by Alexandre Boeglin's avatar Alexandre Boeglin

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
parent 0f6bf2f6
......@@ -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',)
......
......@@ -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')
......
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