Commit 2e5e794e authored by Sebastien Robin's avatar Sebastien Robin

use getPortalAmountGeneratorTypeList in order to allow

selecting trade condition with different portal types

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33452 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1807619b
......@@ -127,7 +127,7 @@ class TradeCondition(Path, Transformation, XMLMatrix):
Uses Breadth First Search.
"""
if portal_type_list is None:
portal_type_list = [self.getPortalType()]
portal_type_list = self.getPortalAmountGeneratorTypeList()
if context.getPortalType() in portal_type_list:
specialise_value_list = [context]
visited_trade_condition_list = [context]
......@@ -356,7 +356,7 @@ class TradeCondition(Path, Transformation, XMLMatrix):
effective_model_list = []
visited_trade_condition_list = []
if portal_type_list is None:
portal_type_list = [self.getPortalType()]
portal_type_list = self.getPortalAmountGeneratorTypeList()
if context.getPortalType() in portal_type_list:
effective_model = context.getEffectiveModel(
......
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