Commit 18f30b33 authored by Sebastien Robin's avatar Sebastien Robin

make sure that in getPrice we do not get the price of a line if there is cells


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3089 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f7d22885
...@@ -515,7 +515,9 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -515,7 +515,9 @@ class Resource(XMLMatrix, CoreResource, Variated):
domain_tool = getToolByName(self,'portal_domains') domain_tool = getToolByName(self,'portal_domains')
portal_type_list = self.getPortalSupplyTypeList() portal_type_list = self.getPortalSupplyTypeList()
mapped_value = domain_tool.generateMappedValue(tmp_context,portal_type=portal_type_list,**kw) mapped_value = domain_tool.generateMappedValue(tmp_context,
portal_type=portal_type_list,
has_cell_content=0,**kw)
if mapped_value is not None: if mapped_value is not None:
base_price = mapped_value.getBasePrice() base_price = mapped_value.getBasePrice()
......
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