Commit 3df49d68 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed "method id not defined".


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5858 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5da4ed37
......@@ -585,6 +585,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
Return the value of the property used to calculate variable pricing
This basically calls a script like Product_getPricingVariable
"""
method = None
if context is not None:
method = context._getTypeBasedMethod('getPricingVariable')
if method is None or context is None:
......
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