From 83429e82ace3af44540bf61d6905779833b42fc9 Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin <alex@nexedi.com> Date: Wed, 10 May 2006 15:17:46 +0000 Subject: [PATCH] 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 --- .../portal_skins/erp5_core/Movement_lookupPrice.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_lookupPrice.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_lookupPrice.xml index cdfbb60dbd..abda4d8f6b 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_lookupPrice.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_lookupPrice.xml @@ -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> -- 2.30.9