diff --git a/product/ERP5/Document/Amount.py b/product/ERP5/Document/Amount.py index 51a2a5fd9b32e5fcd30c89083d6ccd1cdae16a29..b448eeb3b5a4e35400bd65cf8674674fb1e73874 100755 --- a/product/ERP5/Document/Amount.py +++ b/product/ERP5/Document/Amount.py @@ -173,9 +173,7 @@ class Amount(Base, Variated): security.declareProtected(Permissions.AccessContentsInformation, \ 'getVariationRangeCategoryItemList') - def getVariationRangeCategoryItemList(self, base_category_list=(), - display_id='getTitle', base=1, - current_category=None): + def getVariationRangeCategoryItemList(self, **kw): """ Returns possible variation category values for the order line according to the default resource. @@ -187,11 +185,8 @@ class Amount(Base, Variated): resource = self.getResourceValue() if resource != None: result = resource.getVariationCategoryItemList( - omit_individual_variation=0) + omit_individual_variation=0,**kw) else: -# return self.portal_categories.getCategoryChildItemList( -# base=base, -# display_id=display_id) result = [] return result diff --git a/product/ERP5/Document/Transformation.py b/product/ERP5/Document/Transformation.py index 29384e4482def33a0408166c86dc3b01c3fbe660..84a4c9fc0c2e51b4de32b33f8efa24dad6023605 100755 --- a/product/ERP5/Document/Transformation.py +++ b/product/ERP5/Document/Transformation.py @@ -149,7 +149,7 @@ class Transformation(XMLObject, Domain, Variated): security.declareProtected(Permissions.AccessContentsInformation,'getVariationRangeCategoryItemList') def getVariationRangeCategoryItemList(self, base_category_list=(), - display_base_category=1): + display_base_category=1,**kw): """ Returns possible variation category values for the transformation according to the default resource. @@ -168,7 +168,7 @@ class Transformation(XMLObject, Domain, Variated): result = resource.getVariationCategoryItemList( base_category_list=base_category_list, omit_individual_variation=0, - display_base_category=display_base_category) + display_base_category=display_base_category,**kw) else: # No resource is define on transformation. We want to display content of base categories result = self.portal_categories.getCategoryChildTitleItemList(base_category_list, base=1, display_none_category=0)