Commit d87ee83b authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed pricing variable method name.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5854 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc527fea
......@@ -586,9 +586,9 @@ class Resource(XMLMatrix, CoreResource, Variated):
This basically calls a script like Product_getPricingVariable
"""
if context is not None:
method = context._getTypeBasedMethod('_getPricingVariable')
method = context._getTypeBasedMethod('getPricingVariable')
if method is None or context is None:
method = self._getTypeBasedMethod('_getPricingVariable')
method = self._getTypeBasedMethod('getPricingVariable')
if method is None:
return 0.0
......
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