diff --git a/bt5/erp5_payroll/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_payroll/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 24dba49a856c0e514d9a04e4dfd827674cae135e..b30b06843160c48562350c0267a154add3348ffe 100644 --- a/bt5/erp5_payroll/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_payroll/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -9,7 +9,7 @@ </chain> <chain> <type>Pay Sheet Model</type> - <workflow>validation_workflow, edit_workflow</workflow> + <workflow>paysheet_model_interaction_workflow, validation_workflow, edit_workflow</workflow> </chain> <chain> <type>Pay Sheet Model Line</type> diff --git a/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow.xml b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow.xml new file mode 100644 index 0000000000000000000000000000000000000000..20f977026a43e2fbaf83f18a51c5e7a3f3f58faa --- /dev/null +++ b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow.xml @@ -0,0 +1,61 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/> + <tuple/> + </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>creation_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Updates cell range when variation settings categories changed</string> </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>paysheet_model_interaction_workflow</string> </value> + </item> + <item> + <key> <string>manager_bypass</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Interaction Workflow Definition</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/interactions.xml b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/interactions.xml new file mode 100644 index 0000000000000000000000000000000000000000..879a78b540f5742c1dc5bb51265c562252bdf194 --- /dev/null +++ b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/interactions.xml @@ -0,0 +1,37 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Interaction" module="Products.ERP5.Interaction"/> + <tuple/> + </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_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/interactions/update_cell_range.xml b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/interactions/update_cell_range.xml new file mode 100644 index 0000000000000000000000000000000000000000..382f33b2cef75a3bd72d0dcf48dd112c42d2eee2 --- /dev/null +++ b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/interactions/update_cell_range.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="InteractionDefinition" module="Products.ERP5.Interaction"/> + <tuple/> + </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>PaySheetModel_updateCellRange</string> + </list> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>When variation settings category list changes, this means that the slices will be set on this model or delegated to another model. In both cases, we have to update the cell range, either to be able to create new cell, or to have contained cells deleted so that PaySheetModel.getCell gets the value on the inherited model.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>update_cell_range</string> </value> + </item> + <item> + <key> <string>method_id</string> </key> + <value> + <list> + <string>_setVariationSettingsCategoryList</string> + </list> + </value> + </item> + <item> + <key> <string>once_per_transaction</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>portal_type_filter</string> </key> + <value> + <none/> + </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_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/scripts.xml b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/scripts.xml new file mode 100644 index 0000000000000000000000000000000000000000..66683dde0451b4de3eeb20f0fe5c7af60083c8a8 --- /dev/null +++ b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/scripts.xml @@ -0,0 +1,37 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Scripts" module="Products.DCWorkflow.Scripts"/> + <tuple/> + </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_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/scripts/PaySheetModel_updateCellRange.xml b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/scripts/PaySheetModel_updateCellRange.xml new file mode 100644 index 0000000000000000000000000000000000000000..172e3a3376eea02037aaf145926123d8c101f778 --- /dev/null +++ b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/scripts/PaySheetModel_updateCellRange.xml @@ -0,0 +1,141 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </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>sci[\'object\'].updateCellRange(base_id=\'cell\')\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>sci</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>sci</string> + <string>_getattr_</string> + <string>_getitem_</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>PaySheetModel_updateCellRange</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/variables.xml b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/variables.xml new file mode 100644 index 0000000000000000000000000000000000000000..733d9ce458eebdbf2f511e03ef3d0831d9587ce9 --- /dev/null +++ b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/variables.xml @@ -0,0 +1,31 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Variables" module="Products.DCWorkflow.Variables"/> + <tuple/> + </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_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/worklists.xml b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/worklists.xml new file mode 100644 index 0000000000000000000000000000000000000000..3953ad0209bd0cd9a4f7c91ba6db81eebb08acfc --- /dev/null +++ b/bt5/erp5_payroll/WorkflowTemplateItem/portal_workflow/paysheet_model_interaction_workflow/worklists.xml @@ -0,0 +1,31 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="Worklists" module="Products.DCWorkflow.Worklists"/> + <tuple/> + </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_payroll/bt/revision b/bt5/erp5_payroll/bt/revision index 2c136b29b5258dcc2e6f0574cf4950c5d0e2f5d7..4d8531622899210414712b39239174e8b4c32008 100644 --- a/bt5/erp5_payroll/bt/revision +++ b/bt5/erp5_payroll/bt/revision @@ -1 +1 @@ -302 \ No newline at end of file +308 \ No newline at end of file diff --git a/bt5/erp5_payroll/bt/template_portal_type_workflow_chain_list b/bt5/erp5_payroll/bt/template_portal_type_workflow_chain_list index d7d64844cf49d73dc856d10042fae8f9eca11cd2..a86787ad07ca6e3c40e4a33387c81d0521c61419 100644 --- a/bt5/erp5_payroll/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_payroll/bt/template_portal_type_workflow_chain_list @@ -6,6 +6,7 @@ Pay Sheet Line | delivery_movement_simulation_interaction_workflow Pay Sheet Line | edit_workflow Pay Sheet Model Line | edit_workflow Pay Sheet Model | edit_workflow +Pay Sheet Model | paysheet_model_interaction_workflow Pay Sheet Model | validation_workflow Pay Sheet Transaction Line | delivery_movement_causality_interaction_workflow Pay Sheet Transaction Line | delivery_movement_simulation_interaction_workflow diff --git a/bt5/erp5_payroll/bt/template_workflow_id_list b/bt5/erp5_payroll/bt/template_workflow_id_list index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..55d9b02090de096609effab7e26dd23851ba194f 100644 --- a/bt5/erp5_payroll/bt/template_workflow_id_list +++ b/bt5/erp5_payroll/bt/template_workflow_id_list @@ -0,0 +1 @@ +paysheet_model_interaction_workflow \ No newline at end of file