Commit 86ea05f7 authored by Sebastien Robin's avatar Sebastien Robin

this is very bad to take variation of the resource in getPrice


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3447 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6eb585e
...@@ -512,7 +512,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -512,7 +512,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
def getPrice(self, context=None, REQUEST=None, **kw): def getPrice(self, context=None, REQUEST=None, **kw):
""" """
""" """
new_category_list = self.getCategoryList() new_category_list = []
if context is not None: if context is not None:
new_category_list += context.getCategoryList() new_category_list += context.getCategoryList()
if kw.has_key('categories'): if kw.has_key('categories'):
......
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