Commit a896aac3 authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_interaction_drop: Don't patch accounting_workflow transition for guard

   This patch would replace guard for deliver_action to not call isDivergent that would make slow when open a Transaction (I don't remember the reason exactly, probably due large simulation trees).

   This breaks guards when simulation is not used (so it will never be solved) since the transition would never be allowed to the accountant.

   So if isDivergent proves itself slow, we should patch differently, for now keep the original implementation, since it is proven to work.
parent 083d89a6
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Transition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=deliver_action</string> </value>
</item>
<item>
<key> <string>action_name</string> </key>
<value> <string>Definitively Close Transaction</string> </value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/workflow</string>
<string>before_script/portal_workflow/accounting_workflow/script_validateTransactionLines</string>
<string>after_script/portal_workflow/accounting_workflow/transition_deliver</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Mark transaction that belongs to "closed" accounting periods</string> </value>
</item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: here.getProperty(\'causality_state\', \'default\') == \'solved\'</string> </value>
</item>
<item>
<key> <string>guard_group</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>guard_permission</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>guard_role</string> </key>
<value>
<tuple>
<string>Assignor</string>
</tuple>
</value>
</item>
<item>
<key> <string>icon</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>transition_deliver_action</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Transition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Definitively Close Transaction Action</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
portal_workflow/accounting_workflow/transition_deliver_action
\ No newline at end of file
portal_alarms/update_open_order_simulation
portal_alarms/update_open_order_simulation/**
portal_workflow/accounting_workflow/script_Delivery_localBuild
portal_workflow/accounting_workflow/transition_deliver_action
portal_workflow/simulation_movement_causality_interaction_workflow/interaction_calculate_causality
\ 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