Commit 70d32870 authored by Romain Courteaud's avatar Romain Courteaud

Respect Accessor API.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10337 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9aea8bb5
No related merge requests found
......@@ -204,10 +204,12 @@ class SupplyLine(DeliveryLine, Path):
security.declareProtected(Permissions.AccessContentsInformation,
'getQuantityStepList')
def getQuantityStepList(self, price_parameter="base_price"):
def getQuantityStepList(self, *args, **kw):
"""
Return predicate step related to a price_parameter
"""
# We need to keep compatibility with generated accessor
price_parameter = kw.get('price_parameter', "base_price")
if price_parameter == "base_price":
method_name = "_baseGetQuantityStepList"
else:
......
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