diff --git a/product/ERP5/Document/TradeCondition.py b/product/ERP5/Document/TradeCondition.py index 2d293c1bd5cd8a0a5e125fb6a3a17ebeb8f7a3b4..2cd8f0692af75fbc3b630a88231bd47d77b7772f 100644 --- a/product/ERP5/Document/TradeCondition.py +++ b/product/ERP5/Document/TradeCondition.py @@ -220,14 +220,14 @@ class TradeCondition(Path, Transformation, XMLMatrix): trade_model_line_composed_list = \ self.getTradeModelLineComposedList(context) - # initialise run then rerun only once, as trade_model_line_composed_list - # is sorted in good way to have simple algorithm + # trade_model_line_composed_list is sorted in good way to have + # simple algorithm for model_line in trade_model_line_composed_list: result.extend(model_line.getAggregatedAmountList(context, movement_list=movement_list, current_aggregated_amount_list=result, **kw)) - movement_list = result # apply model again on generated movements + movement_list = result # remove movement that should not be created final_movement_list = []