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> <property_sheet_list>
<portal_type id="Category Tool">
<item>CategoryToolCategoryNameConstraint</item>
</portal_type>
<portal_type id="Template Tool"> <portal_type id="Template Tool">
<item>TemplateToolBusinessTemplateInstallationConstraint</item> <item>TemplateToolBusinessTemplateInstallationConstraint</item>
<item>TemplateToolCategoryNameConstraint</item>
<item>TemplateToolTableConsistencyConstraint</item> <item>TemplateToolTableConsistencyConstraint</item>
<item>TemplateToolWorkflowChainConsistencyConstraint</item> <item>TemplateToolWorkflowChainConsistencyConstraint</item>
</portal_type> </portal_type>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>CategoryToolCategoryNameConstraint</string> </value> <value> <string>TemplateToolCategoryNameConstraint</string> </value>
</item> </item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</item> </item>
<item> <item>
<key> <string>script_id</string> </key> <key> <string>script_id</string> </key>
<value> <string>CategoryTool_checkCategoryNameConsistency</string> </value> <value> <string>TemplateTool_checkCategoryNameConsistency</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -99,7 +99,7 @@ return error_list\n ...@@ -99,7 +99,7 @@ return error_list\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>CategoryTool_checkCategoryNameConsistency</string> </value> <value> <string>TemplateTool_checkCategoryNameConsistency</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
Category Tool | CategoryToolCategoryNameConstraint
Template Tool | TemplateToolBusinessTemplateInstallationConstraint Template Tool | TemplateToolBusinessTemplateInstallationConstraint
Template Tool | TemplateToolCategoryNameConstraint
Template Tool | TemplateToolTableConsistencyConstraint Template Tool | TemplateToolTableConsistencyConstraint
Template Tool | TemplateToolWorkflowChainConsistencyConstraint Template Tool | TemplateToolWorkflowChainConsistencyConstraint
TemplateToolBusinessTemplateInstallationConstraint TemplateToolBusinessTemplateInstallationConstraint
TemplateToolWorkflowChainConsistencyConstraint TemplateToolCategoryNameConstraint
TemplateToolTableConsistencyConstraint TemplateToolTableConsistencyConstraint
CategoryToolCategoryNameConstraint TemplateToolWorkflowChainConsistencyConstraint
\ 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