Commit 43aa31c8 authored by Alexandre Boeglin's avatar Alexandre Boeglin

getPriceParameterDict: when calling getPorperty on the mapped_value, force the

default to the one defined in price_parameter_dict. As mapped_value is a
TempSupplyCell, we don't want to retrieve default valued from one of
SupplyCell's property sheet properties.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19848 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f172b5dc
...@@ -599,8 +599,9 @@ class Resource(XMLMatrix, Variated): ...@@ -599,8 +599,9 @@ class Resource(XMLMatrix, Variated):
return price_parameter_dict return price_parameter_dict
for price_parameter_name in price_parameter_dict.keys(): for price_parameter_name in price_parameter_dict.keys():
price_parameter_value = \ price_parameter_value = \
mapped_value.getProperty(price_parameter_name) mapped_value.getProperty(price_parameter_name,
if price_parameter_value not in [None, '']: d=price_parameter_dict[price_parameter_name])
if price_parameter_value not in [None, [], '']:
try: try:
price_parameter_dict[price_parameter_name].extend( price_parameter_dict[price_parameter_name].extend(
price_parameter_value) price_parameter_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