Commit 031198fd authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: archive Open Order as soon as Item is invalidated

parent 3c4e7c61
......@@ -11,6 +11,10 @@
<type>Cloud Contract Line</type>
<workflow>edit_workflow</workflow>
</chain>
<chain>
<type>Compute Node</type>
<workflow>slapos_accounting_interaction_workflow</workflow>
</chain>
<chain>
<type>Computer Consumption TioXML File</type>
<workflow>document_conversion_interaction_workflow, document_publication_workflow, edit_workflow</workflow>
......@@ -27,6 +31,10 @@
<type>Open Sale Order</type>
<workflow>slapos_accounting_interaction_workflow, slapos_simulation_interaction_workflow</workflow>
</chain>
<chain>
<type>Project</type>
<workflow>slapos_accounting_interaction_workflow</workflow>
</chain>
<chain>
<type>Sale Invoice Transaction</type>
<workflow>slapos_accounting_interaction_workflow, slapos_simulation_interaction_workflow</workflow>
......
......@@ -22,7 +22,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>interaction_InstanceTree_changePromiseState</string> </value>
<value> <string>interaction_Item_invalidate</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......@@ -33,6 +33,8 @@
<value>
<tuple>
<string>Instance Tree</string>
<string>Compute Node</string>
<string>Project</string>
</tuple>
</value>
</item>
......@@ -46,11 +48,16 @@
<key> <string>temporary_document_disallowed</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Item_invalidate</string> </value>
</item>
<item>
<key> <string>trigger_method_id</string> </key>
<value>
<tuple>
<string>requestDestroy</string>
<string>invalidate</string>
<string>archive</string>
</tuple>
</value>
</item>
......
......@@ -2,6 +2,7 @@ Applied Rule | slapos_simulation_interaction_workflow
Cloud Contract Line | edit_workflow
Cloud Contract | edit_workflow
Cloud Contract | item_workflow
Compute Node | slapos_accounting_interaction_workflow
Computer Consumption TioXML File | document_conversion_interaction_workflow
Computer Consumption TioXML File | document_publication_workflow
Computer Consumption TioXML File | edit_workflow
......@@ -9,6 +10,7 @@ Hosting Subscription | slapos_accounting_interaction_workflow
Instance Tree | slapos_accounting_interaction_workflow
Open Sale Order | slapos_accounting_interaction_workflow
Open Sale Order | slapos_simulation_interaction_workflow
Project | slapos_accounting_interaction_workflow
Sale Invoice Transaction | slapos_accounting_interaction_workflow
Sale Invoice Transaction | slapos_simulation_interaction_workflow
Sale Packing List | slapos_accounting_interaction_workflow
......
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