From 70d32870cba59471f7c23e4d5b38c6acf17a4475 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Tue, 26 Sep 2006 16:37:46 +0000
Subject: [PATCH] Respect Accessor API.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10337 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/SupplyLine.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/SupplyLine.py b/product/ERP5/Document/SupplyLine.py
index 6b31d77cc5..bd02cec8c5 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:
-- 
2.30.9