Commit 730b65a9 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Xiaowu Zhang

Make sure we use sale price

parent d8d2f5e3
......@@ -5,7 +5,7 @@ import mechanize
def getProductPrice(product):
getPrice = UnrestrictedMethod(product.getPrice)
return getPrice()
return getPrice(supply_path_type=["Sale Supply Line", "Sale Supply Cell"])
def submitPaypalNVPRequest(parameter_dict, nvp_url):
request = mechanize.Request(nvp_url)
......
......@@ -121,7 +121,7 @@ if not line_found:\n
order_line.setQuantity(quantity)\n
if variation: order_line.setVariation(variation)\n
if size: order_line.setSize(size)\n
order_line.setPrice(context.getPrice(context=order_line))\n
order_line.setPrice(context.getPrice(supply_path_type=["Sale Supply Line", "Sale Supply Cell"], context=order_line))\n
\n
if( context.getPortalType() == \'Product\'):\n
context.Base_redirect(\'Resource_viewAsShop\',\n
......
......@@ -95,7 +95,7 @@ return movement\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>**kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
......
315
\ No newline at end of file
316
\ No newline at end of file
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