Commit ac233132 authored by Romain Courteaud's avatar Romain Courteaud

Test self only if its a amount_generator_line

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@34671 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9d1f22bf
......@@ -172,7 +172,12 @@ class AmountGeneratorMixin:
portal_type=amount_generator_cell_type_list)
resource_amount_aggregate = {} # aggregates final line information
value_amount_aggregate = {} # aggregates intermediate line information
for amount_generator_cell in amount_generator_cell_list or (self,):
if (not amount_generator_cell_list) and (self.getPortalType() in
amount_generator_line_type_list):
amount_generator_cell_list = (self,)
for amount_generator_cell in amount_generator_cell_list:
if not amount_generator_cell.test(delivery_amount):
continue
base_application_list = amount_generator_cell.getBaseApplicationList()
......
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