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

Work on stabilised invoices.

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