Commit ef844a36 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: reduce number of visited sale packing lists

parent 91f3b496
......@@ -5,6 +5,7 @@ select_dict= {'causality__related__uid': None}
kw.update(
portal_type='Sale Packing List',
ledger__uid=portal.portal_categories.ledger.automated.getUid(),
causality__portal_type='Payment Transaction',
# This is an optimisation to help mariadb selecting a better index
simulation_state=['delivered'],
left_join_list=select_dict.keys(),
......
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