Commit 3d868942 authored by Łukasz Nowak's avatar Łukasz Nowak

Work on stabilised invoices.

parent a229febc
......@@ -57,6 +57,7 @@ portal = context.getPortalObject()\n
portal.portal_catalog.searchAndActivate(\n
portal_type=\'Sale Invoice Transaction\',\n
simulation_state=\'confirmed\',\n
causality_state=\'solved\',\n
method_id=\'SaleInvoiceTransaction_stopConfirmed\',\n
activate_kw={\'tag\': tag}\n
)\n
......
......@@ -51,7 +51,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPossible\n
if context.getSimulationState() == \'confirmed\' and len(context.checkConsistency()) == 0:\n
if context.getSimulationState() == \'confirmed\' and len(context.checkConsistency()) == 0 and context.getCausalityState() == \'solved\':\n
if isTransitionPossible(context, \'start\'):\n
context.start()\n
if isTransitionPossible(context, \'stop\'):\n
......
692
\ No newline at end of file
693
\ 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