Commit 9518c0b6 authored by Kevin Deldycke's avatar Kevin Deldycke

Add a portal method to return the currency used as a reference for banking transaction.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4614 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00fa77a4
......@@ -557,6 +557,13 @@ class ERP5Site ( CMFSite, FolderMixIn ):
clean_list.append(cat)
return clean_list
security.declareProtected(Permissions.AccessContentsInformation, 'getPortalReferenceCurrencyID')
def getPortalReferenceCurrencyID(self):
"""
Return the currency used as a reference for banking transaction.
"""
return self._getPortalConfiguration('portal_reference_currency_id')
security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultModuleId')
def getDefaultModuleId(self, portal_type):
"""
......
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