diff --git a/product/ERP5/Document/SupplyLine.py b/product/ERP5/Document/SupplyLine.py index 6b31d77cc52a036d3c64a022e3d94602c2dd481b..bd02cec8c5866c21fd664048df5ed63ebc318f72 100644 --- a/product/ERP5/Document/SupplyLine.py +++ b/product/ERP5/Document/SupplyLine.py @@ -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: