Commit 546e3f35 authored by Jean-Paul Smets's avatar Jean-Paul Smets

some methods added to handle quantity_unit


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@276 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e30a79ef
......@@ -148,3 +148,21 @@ un modele..."""
self._setTitle(value)
self.reindexObject()
security.declareProtected(Permissions.View, 'getDefaultQuantityUnit')
def getDefaultQuantityUnit(self):
# Requires for Assorted Resource XXX temp patch until getAggregated methods use real classes instead of dicts
# and access props/cats through accessors
return "Unite"
security.declareProtected(Permissions.View, 'getQuantityUnit')
def getQuantityUnit(self):
# Requires for Assorted Resource XXX temp patch until getAggregated methods use real classes instead of dicts
# and access props/cats through accessors
return "Unite"
security.declareProtected(Permissions.View, 'getQuantityUnitList')
def getQuantityUnitList(self):
# Requires for Assorted Resource XXX temp patch until getAggregated methods use real classes instead of dicts
# and access props/cats through accessors
return ["Unite"]
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