Commit 83429e82 authored by Alexandre Boeglin's avatar Alexandre Boeglin

As now all Resources use a default_supply_line, Movement_lookupPrice must use the

 Resource.getPrice() method to be able to retrieve the base_price from the
 supply_line.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7157 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a60593eb
......@@ -68,8 +68,8 @@
<key> <string>_body</string> </key>
<value> <string>resource = context.getResourceValue()\n
if resource is not None:\n
return resource.getBasePrice(0)/resource.getPricedQuantity()\n
# return resource.getPrice(context=context) # calls a Resource_lookupPrice itself\n
#return resource.getBasePrice(0)/resource.getPricedQuantity()\n
return resource.getPrice(context=context) # calls a Resource_lookupPrice itself\n
else:\n
return None\n
</string> </value>
......
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