Commit cfe0c15d authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_upgrader: the constraint on Category Tool moves on Template Tool

Category Tool is very special for an ERP5, because it is part of the dynamic
generation of objects' properties. Setting up a property sheet on it will break
ERP5.

As the renaming feature is related to the upgrade, we will attach the constraint
on the Template Tool, as a way to group all the upgrade features at the same place
parent e518a093
<property_sheet_list>
<portal_type id="Category Tool">
<item>CategoryToolCategoryNameConstraint</item>
</portal_type>
<portal_type id="Template Tool">
<item>TemplateToolBusinessTemplateInstallationConstraint</item>
<item>TemplateToolCategoryNameConstraint</item>
<item>TemplateToolTableConsistencyConstraint</item>
<item>TemplateToolWorkflowChainConsistencyConstraint</item>
</portal_type>
</property_sheet_list>
\ No newline at end of file
</property_sheet_list>
......@@ -32,7 +32,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>CategoryToolCategoryNameConstraint</string> </value>
<value> <string>TemplateToolCategoryNameConstraint</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......
......@@ -42,7 +42,7 @@
</item>
<item>
<key> <string>script_id</string> </key>
<value> <string>CategoryTool_checkCategoryNameConsistency</string> </value>
<value> <string>TemplateTool_checkCategoryNameConsistency</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -99,7 +99,7 @@ return error_list\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>CategoryTool_checkCategoryNameConsistency</string> </value>
<value> <string>TemplateTool_checkCategoryNameConsistency</string> </value>
</item>
</dictionary>
</pickle>
......
Category Tool | CategoryToolCategoryNameConstraint
Template Tool | TemplateToolBusinessTemplateInstallationConstraint
Template Tool | TemplateToolCategoryNameConstraint
Template Tool | TemplateToolTableConsistencyConstraint
Template Tool | TemplateToolWorkflowChainConsistencyConstraint
\ No newline at end of file
Template Tool | TemplateToolWorkflowChainConsistencyConstraint
TemplateToolBusinessTemplateInstallationConstraint
TemplateToolWorkflowChainConsistencyConstraint
TemplateToolCategoryNameConstraint
TemplateToolTableConsistencyConstraint
CategoryToolCategoryNameConstraint
\ No newline at end of file
TemplateToolWorkflowChainConsistencyConstraint
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