Commit 202cbdd4 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: destination project is not required on invoice

Do not search with a None value
parent 5a3af9ec
......@@ -8,5 +8,4 @@ return [x.getObject() for x in portal.portal_catalog(
ledger__uid=portal.portal_categories.ledger.automated.getUid(),
# BEWARE: it works only in case of per-tree building
destination_section__uid=movement_list[0].getDestinationSectionUid(),
destination_project__uid=movement_list[0].getDestinationProjectUid(),
simulation_state=simulation_state) if x.getSimulationState() == simulation_state]
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