Commit ca525c77 authored by Łukasz Nowak's avatar Łukasz Nowak

Do it in same transaction.

parent 73df2670
...@@ -75,8 +75,7 @@ if invoice.getSimulationState() == \'draft\':\n ...@@ -75,8 +75,7 @@ if invoice.getSimulationState() == \'draft\':\n
\n \n
# Update causality workflow\n # Update causality workflow\n
invoice.startBuilding()\n invoice.startBuilding()\n
invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n invoice.updateCausalityState()\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))).updateCausalityState()\n
\n \n
# update specialise from movements\n # update specialise from movements\n
specialise_list = invoice.getSpecialiseList()\n specialise_list = invoice.getSpecialiseList()\n
......
391 392
\ No newline at end of file \ No newline at end of file
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