diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow.xml new file mode 100644 index 0000000000000000000000000000000000000000..762704f29ed479134ce060ccf5fa97555320d37b --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow.xml @@ -0,0 +1,46 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5.InteractionWorkflow</string> + <string>InteractionWorkflowDefinition</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>packing_list_interaction_workflow</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions.xml new file mode 100644 index 0000000000000000000000000000000000000000..7d8c51003b7e09d577b9ce4a374f51510b4e2ead --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions.xml @@ -0,0 +1,40 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5.Interaction</string> + <string>Interaction</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>interactions</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/Container_delete.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/Container_delete.xml new file mode 100644 index 0000000000000000000000000000000000000000..bdbe2e2b06c1d7c05ebb05fd478cdf4e73c4a274 --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/Container_delete.xml @@ -0,0 +1,95 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5.Interaction</string> + <string>InteractionDefinition</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>activate_script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Container_delete</string> </value> + </item> + <item> + <key> <string>method_id</string> </key> + <value> + <list> + <string>manage_beforeDelete</string> + </list> + </value> + </item> + <item> + <key> <string>portal_type_filter</string> </key> + <value> + <list> + <string>Container Cell</string> + <string>Container Line</string> + </list> + </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> + <list> + <string>Container_activateUpdatePackingListState</string> + </list> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/Container_edit.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/Container_edit.xml new file mode 100644 index 0000000000000000000000000000000000000000..fccce78646cdc4f3fdcf8f8ac99771f3f03f8ecc --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/Container_edit.xml @@ -0,0 +1,97 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5.Interaction</string> + <string>InteractionDefinition</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>activate_script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> + <list> + <string>Container_updatePackingListState</string> + </list> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Container_edit</string> </value> + </item> + <item> + <key> <string>method_id</string> </key> + <value> + <list> + <string>_edit</string> + <string>manage_afterAdd</string> + <string>manage_afterClone</string> + </list> + </value> + </item> + <item> + <key> <string>portal_type_filter</string> </key> + <value> + <list> + <string>Container Cell</string> + <string>Container Line</string> + </list> + </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/PackingListContent_delete.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/PackingListContent_delete.xml new file mode 100644 index 0000000000000000000000000000000000000000..9e2c6f5d7c8be3bd96c413f3bb5d36a91b50222c --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/PackingListContent_delete.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5.Interaction</string> + <string>InteractionDefinition</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>activate_script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PackingListContent_delete</string> </value> + </item> + <item> + <key> <string>method_id</string> </key> + <value> + <list> + <string>manage_beforeDelete</string> + </list> + </value> + </item> + <item> + <key> <string>portal_type_filter</string> </key> + <value> + <list> + <string>Delivery Cell</string> + <string>Production Packing List Line</string> + <string>Production Report Cell</string> + <string>Production Report Line</string> + <string>Purchase Packing List Line</string> + <string>Sale Packing List Line</string> + </list> + </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> + <list> + <string>PackingListContent_beforeDelete</string> + </list> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/PackingListContent_edit.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/PackingListContent_edit.xml new file mode 100644 index 0000000000000000000000000000000000000000..7dd9477ced0d69a46c3f56a969949dd8a77f3aec --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/PackingListContent_edit.xml @@ -0,0 +1,99 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5.Interaction</string> + <string>InteractionDefinition</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>activate_script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> + <list> + <string>PackingListContent_updatePackingListState</string> + </list> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PackingListContent_edit</string> </value> + </item> + <item> + <key> <string>method_id</string> </key> + <value> + <list> + <string>_edit</string> + </list> + </value> + </item> + <item> + <key> <string>portal_type_filter</string> </key> + <value> + <list> + <string>Delivery Cell</string> + <string>Production Packing List Line</string> + <string>Production Report Cell</string> + <string>Production Report Line</string> + <string>Purchase Packing List Line</string> + <string>Sale Packing List Line</string> + </list> + </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/PackingList_edit.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/PackingList_edit.xml new file mode 100644 index 0000000000000000000000000000000000000000..136194768487917ae3da1f30059eb5d18017d545 --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/interactions/PackingList_edit.xml @@ -0,0 +1,97 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5.Interaction</string> + <string>InteractionDefinition</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>activate_script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> + <list> + <string>PackingList_updateAppliedRule</string> + </list> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PackingList_edit</string> </value> + </item> + <item> + <key> <string>method_id</string> </key> + <value> + <list> + <string>edit</string> + </list> + </value> + </item> + <item> + <key> <string>portal_type_filter</string> </key> + <value> + <list> + <string>Production Packing List</string> + <string>Production Report</string> + <string>Purchase Packing List</string> + <string>Sale Packing List</string> + </list> + </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>2</int> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts.xml new file mode 100644 index 0000000000000000000000000000000000000000..01ba35bf25f5084dde4a3822b204530dc92c3f47 --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts.xml @@ -0,0 +1,40 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.DCWorkflow.Scripts</string> + <string>Scripts</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>scripts</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/Container_activateUpdatePackingListState.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/Container_activateUpdatePackingListState.xml new file mode 100644 index 0000000000000000000000000000000000000000..07aa3ceb3575d4daf85ad5b12f2ad86ca1225de7 --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/Container_activateUpdatePackingListState.xml @@ -0,0 +1,169 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> <string encoding="base64">bfINCg==</string> </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>packing_list_content = state_change.object\n +\n +packing_list_content.getExplanationValue().activate().edit()\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/baobab/portal_workflow/packing_list_interaction_workflow/scripts/Container_activateUpdatePackingListState</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>_getattr_</string> + <string>packing_list_content</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Container_activateUpdatePackingListState</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/Container_updatePackingListState.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/Container_updatePackingListState.xml new file mode 100644 index 0000000000000000000000000000000000000000..06bc89a75b5ad7080fbafd710fd9bb36f9df9f06 --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/Container_updatePackingListState.xml @@ -0,0 +1,171 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> <string encoding="base64">bfINCg==</string> </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>packing_list_content = state_change.object\n +\n +#packing_list_content.immediateReindexObject()\n +#packing_list_content.getExplanationValue().edit()\n +packing_list_content.getExplanationValue().activate().edit()\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/baobab/portal_workflow/packing_list_interaction_workflow/scripts/Container_updatePackingListState</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>_getattr_</string> + <string>packing_list_content</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Container_updatePackingListState</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/PackingListContent_beforeDelete.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/PackingListContent_beforeDelete.xml new file mode 100644 index 0000000000000000000000000000000000000000..c29b3ca052e9a80fe15edc65374fbbbba823625e --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/PackingListContent_beforeDelete.xml @@ -0,0 +1,192 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> <string encoding="base64">bfINCg==</string> </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>packing_list_content = state_change.object\n +\n +# Clean simulation\n +simulation_movement_list = packing_list_content.getDeliveryRelatedValueList(\n + portal_type="Simulation Movement")\n +for simulation_movement in simulation_movement_list:\n + # Simulation movement have to be aggregated on a new Delivery.\n + simulation_movement.setDelivery(None)\n +\n +# packing_list = packing_list_content.getExplanationValue()\n +# packing_list_portal_type = packing_list.getPortalType()\n +# if packing_list_portal_type == \'Sale Packing List\':\n +# delivery_builder = packing_list.portal_deliveries.sale_packing_list_builder\n +# elif packing_list_portal_type == \'Purchase Packing List\':\n +# delivery_builder = packing_list.portal_deliveries.\\\n +# purchase_packing_list_builder\n +# \n +# delivery_builder.build(\n +# movement_relative_url_list=[x.getRelativeUrl() for x in\\\n +# simulation_movement_list],\n +# delivery_relative_url_list=[packing_list.getRelativeUrl()]\n +# )\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/baobab/portal_workflow/packing_list_interaction_workflow/scripts/PackingListContent_beforeDelete</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>_getattr_</string> + <string>packing_list_content</string> + <string>simulation_movement_list</string> + <string>_getiter_</string> + <string>simulation_movement</string> + <string>None</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PackingListContent_beforeDelete</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/PackingListContent_updatePackingListState.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/PackingListContent_updatePackingListState.xml new file mode 100644 index 0000000000000000000000000000000000000000..ebd6cadc0ba6f7b40de18e50976eb5bbd3856d1c --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/PackingListContent_updatePackingListState.xml @@ -0,0 +1,172 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> <string encoding="base64">bfINCg==</string> </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>packing_list_content = state_change.object\n +if packing_list_content.getSimulationState()!=\'draft\':\n + explanation_value = packing_list_content.getExplanationValue()\n + explanation_value.edit()\n + packing_list_content.activate().PackingListContent_updateAfterEdit()\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/baobab/portal_workflow/packing_list_interaction_workflow/scripts/PackingListContent_updatePackingListState</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>_getattr_</string> + <string>packing_list_content</string> + <string>explanation_value</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PackingListContent_updatePackingListState</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/PackingList_updateAppliedRule.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/PackingList_updateAppliedRule.xml new file mode 100644 index 0000000000000000000000000000000000000000..dafc910fb1a6a5149428aef94f56440812e14dd0 --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/scripts/PackingList_updateAppliedRule.xml @@ -0,0 +1,151 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> <string encoding="base64">bfINCg==</string> </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>packing_list = state_change.object\n +if packing_list.getSimulationState()!=\'draft\':\n + packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\')).updateAppliedRule(rule_id=\'default_delivery_rule\')\n +\n +\n +# XXX Not required, reindex of the applied rule is done in updateAppliedRule\n +#my_applied_rule_list = context.getCausalityRelatedValueList(\\\n +# portal_type=\'Applied Rule\')\n +#for my_applied_rule in my_applied_rule_list:\n +# my_applied_rule.activate(after_method_id=\'expand\',priority=2).recursiveImmediateReindexObject()\n +#\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/baobab/portal_workflow/packing_list_interaction_workflow/scripts/PackingList_updateAppliedRule</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change, **kw</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>kw</string> + <string>_getattr_</string> + <string>packing_list</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PackingList_updateAppliedRule</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/variables.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/variables.xml new file mode 100644 index 0000000000000000000000000000000000000000..db67387d4e62a7db68bbb9689238ba0824326e50 --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/variables.xml @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.DCWorkflow.Variables</string> + <string>Variables</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>variables</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/worklists.xml b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/worklists.xml new file mode 100644 index 0000000000000000000000000000000000000000..f4c2789633e196d41819670f25c55bac972e751a --- /dev/null +++ b/bt5/erp5_banking_core/WorkflowTemplateItem/portal_workflow/packing_list_interaction_workflow/worklists.xml @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.DCWorkflow.Worklists</string> + <string>Worklists</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_mapping</string> </key> + <value> + <dictionary/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>worklists</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/bt/template_workflow_id_list b/bt5/erp5_banking_core/bt/template_workflow_id_list index 0dfb519e58c57ffa08d319c441ee4826cd916c19..e81699d820c729caf8f886ee7b254adc46c1d275 100644 --- a/bt5/erp5_banking_core/bt/template_workflow_id_list +++ b/bt5/erp5_banking_core/bt/template_workflow_id_list @@ -2,4 +2,5 @@ bank_account_edit_workflow bank_account_workflow check_workflow counter_date_workflow -counter_workflow \ No newline at end of file +counter_workflow +packing_list_interaction_workflow \ No newline at end of file