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

Mark that builder planned the invoice.

Also restore previous in activity updateCausalityState.
parent f84d358f
...@@ -68,13 +68,15 @@ if not invoice.Invoice_isAdvanced():\n ...@@ -68,13 +68,15 @@ if not invoice.Invoice_isAdvanced():\n
if invoice.getStartDate() is None:\n if invoice.getStartDate() is None:\n
invoice.setStartDate(DateTime())\n invoice.setStartDate(DateTime())\n
\n \n
tag = \'%s_plan\' % invoice.getPath()\n
# initialize accounting_workflow to planned state\n # initialize accounting_workflow to planned state\n
if invoice.getSimulationState() == \'draft\':\n if invoice.getSimulationState() == \'draft\':\n
invoice.plan()\n invoice.plan(comment=translateString(\'Initialised by Delivery Builder.\'), activate_kw={\'tag\': tag})\n
\n \n
# Update causality workflow\n # Update causality workflow\n
invoice.startBuilding()\n invoice.startBuilding()\n
invoice.updateCausalityState()\n invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list,\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
......
390 391
\ 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