Commit 9cae3dc6 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_invoicing: make sure get correct SM

See merge request nexedi/erp5!1614
parents bf87c7dc 6a9fe701
Pipeline #21247 failed with stage
......@@ -35,4 +35,5 @@ kw['grand_grand_grand_parent_simulation_state'] = ['started']
movement_list += list(context.portal_catalog(**kw))
return movement_list
# Simulation movement's state maybe not yet updated, make sure it's the right one
return [x for x in movement_list if x.getParentValue().getParentValue().getSimulationState() == 'started']
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