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',) ...@@ -167,7 +167,7 @@ portal_payment_condition_type_list = ('Condition Paiement',)
portal_supply_type_list = ('Purchase Supply','Sale Supply') 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. # This transaction lines are special because destination must be None.
portal_balance_transaction_line_type_list = ('Balance Transaction Line',) portal_balance_transaction_line_type_list = ('Balance Transaction Line',)
......
...@@ -464,13 +464,13 @@ class ERP5Site ( FolderMixIn, CMFSite ): ...@@ -464,13 +464,13 @@ class ERP5Site ( FolderMixIn, CMFSite ):
self._getPortalConfiguration('portal_supply_type_list') self._getPortalConfiguration('portal_supply_type_list')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalSupplyMovementTypeList') 'getPortalSupplyPathTypeList')
def getPortalSupplyMovementTypeList(self): def getPortalSupplyPathTypeList(self):
""" """
Return supply movement types. Return supply movement types.
""" """
return self._getPortalGroupedTypeList('supply_movement') or\ return self._getPortalGroupedTypeList('supply_path') or\
self._getPortalConfiguration('portal_supply_movement_type_list') self._getPortalConfiguration('portal_supply_path_type_list')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalAcquisitionMovementTypeList') 'getPortalAcquisitionMovementTypeList')
...@@ -480,8 +480,7 @@ class ERP5Site ( FolderMixIn, CMFSite ): ...@@ -480,8 +480,7 @@ class ERP5Site ( FolderMixIn, CMFSite ):
""" """
return tuple(list(self.getPortalOrderMovementTypeList()) + return tuple(list(self.getPortalOrderMovementTypeList()) +
list(self.getPortalDeliveryMovementTypeList()) + list(self.getPortalDeliveryMovementTypeList()) +
list(self.getPortalInvoiceMovementTypeList()) + list(self.getPortalInvoiceMovementTypeList()))
list(self.getPortalSupplyMovementTypeList()))
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalMovementTypeList') '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