Commit 42842fbc authored by Fabien Morin's avatar Fabien Morin

define movement_to_add_list before to enter in the loop. This prevent to raise...

define movement_to_add_list before to enter in the loop. This prevent to raise an error in case of getAggregatedAmountList return an empty list


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27081 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bcc6e9f6
...@@ -81,6 +81,7 @@ class TradeCondition(Path, Transformation): ...@@ -81,6 +81,7 @@ class TradeCondition(Path, Transformation):
.getPreferredNormalResourceUseCategoryList() .getPreferredNormalResourceUseCategoryList()
# check if the existing movements are in aggregated movments # check if the existing movements are in aggregated movments
movement_to_delete_list = [] movement_to_delete_list = []
movement_to_add_list = []
if len(aggregated_amount_list): if len(aggregated_amount_list):
for movement in existing_movement_list: for movement in existing_movement_list:
keep_movement = False keep_movement = False
......
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