Commit 3a856c11 authored by Łukasz Nowak's avatar Łukasz Nowak

- fetch list of rules by explicitly checking its specialisation portal type


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27876 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 546e6ff6
......@@ -269,7 +269,10 @@ class TestInvoiceMixin(TestPackingListMixin,
simulation_movement_list = invoicing_rule.objectValues()
self.assertNotEquals(len(simulation_movement_list), 0)
for simulation_movement in simulation_movement_list :
invoice_transaction_rule_list.extend(simulation_movement.objectValues())
invoice_transaction_rule_list.extend([applied_rule for applied_rule
in simulation_movement.objectValues() if applied_rule \
.getSpecialiseValue().getPortalType()
== 'Invoice Transaction Rule'])
resource_list = sequence.get('resource_list')
self.assertEquals(simulation_movement.getPortalType(),
'Simulation Movement')
......
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