From 148098427f31e9df671d363be3c0d5bdb822d945 Mon Sep 17 00:00:00 2001
From: Ayush Tiwari <ayush.tiwari@nexedi.com>
Date: Mon, 27 Nov 2017 11:57:10 +0100
Subject: [PATCH] [erp5_core]: Add workflow chain for ERP5 Catalog and its
 sub-objects.

According to guidelines, documents should have 'edit_workflow'.
https://www.erp5.com/documentation/developer/guideline/programming/erp5-Guideline.Programming.Naming.Conventions#never-forget-edit-workflow-on-documents
---
 .../workflow_chain_type.xml                          | 12 ++++++++++++
 .../bt/template_portal_type_workflow_chain_list      |  3 +++
 2 files changed, 15 insertions(+)

diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
index 2630701a9e..4e2898b014 100644
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
@@ -39,6 +39,10 @@
   <type>Business Template</type>
   <workflow>business_template_building_workflow, business_template_installation_workflow</workflow>
  </chain>
+ <chain>
+  <type>Catalog</type>
+  <workflow>edit_workflow</workflow>
+ </chain>
  <chain>
   <type>Category</type>
   <workflow>edit_workflow</workflow>
@@ -135,6 +139,14 @@
   <type>Property Type Validity Constraint</type>
   <workflow>dynamic_class_generation_interaction_workflow</workflow>
  </chain>
+ <chain>
+  <type>Python Script</type>
+  <workflow>edit_workflow</workflow>
+ </chain>
+ <chain>
+  <type>SQL Method</type>
+  <workflow>edit_workflow</workflow>
+ </chain>
  <chain>
   <type>Standard Property</type>
   <workflow>dynamic_class_generation_interaction_workflow</workflow>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/template_portal_type_workflow_chain_list b/product/ERP5/bootstrap/erp5_core/bt/template_portal_type_workflow_chain_list
index 54a83f3e6e..1e5afed608 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/template_portal_type_workflow_chain_list
+++ b/product/ERP5/bootstrap/erp5_core/bt/template_portal_type_workflow_chain_list
@@ -11,6 +11,7 @@ Base Type | base_type_interaction_workflow
 Base Type | dynamic_class_generation_interaction_workflow
 Business Template | business_template_building_workflow
 Business Template | business_template_installation_workflow
+Catalog | edit_workflow
 Category Acquired Membership State Constraint | dynamic_class_generation_interaction_workflow
 Category Existence Constraint | dynamic_class_generation_interaction_workflow
 Category Membership Arity Constraint | dynamic_class_generation_interaction_workflow
@@ -41,6 +42,8 @@ Property Existence Constraint | dynamic_class_generation_interaction_workflow
 Property Sheet Tool | dynamic_class_generation_interaction_workflow
 Property Sheet | dynamic_class_generation_interaction_workflow
 Property Type Validity Constraint | dynamic_class_generation_interaction_workflow
+Python Script | edit_workflow
+SQL Method | edit_workflow
 Standard Property | dynamic_class_generation_interaction_workflow
 String Attribute Match Constraint | dynamic_class_generation_interaction_workflow
 System Preference | edit_workflow
-- 
2.30.9